Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Vinay Gupta
use is of 2
1 Answer(s)      2 years and 8 months ago
Posted in : Java Beginners


why we use 2 in "Integer.parseInt(str,2);" for binary to decimal conversion..??


Advertisement
View Answers

March 19, 2012 at 11:50 PM


ya i got it... because binary contain only two o and 1...so here use 2...same as octal has 8..



Related Tutorials/Questions & Answers:
use is of 2
use is of 2  why we use 2 in "Integer.parseInt(str,2);" for binary to decimal conversion..??   ya i got it... because binary contain only two o and 1...so here use 2...same as octal has 8
How to Use Struts 2 token tag - Struts
How to Use Struts 2 token tag  Hi , I want to stop re-submiiting the page by pressing F5, or click 'back n press submit' button again, i want to use... page, or do i need to map anything on my struts.xml file ? I am using struts 2
Advertisements
Can anybody tell me how to use #parameters in struts 2 ?
Can anybody tell me how to use #parameters in struts 2 ?  I have a login page, And by using struts.xml and #parameters I want to display error message if there is any error in login. Ex : struts.xml welcomePage.tiles /jsp
How to use Arraylist object in <s:dobleselect> .... struts 2? - Struts
How to use Arraylist object in .... struts 2?  Hi Members, I saw the example of tag in roseindia, its very useful. But I have to use my ArrayList object with that tag. Im retrieving the values for arraylist object from
Struts 2 Redirect Action
Struts 2 Redirect Action       In this section, you will get familiar with struts 2 Redirect action and learn to use it in the struts 2 application. Redirect After Post: This post
Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print ++a in the same printf() command ten times)
Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print ++a in the same printf() command ten times)  Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print
Struts 2 Date Examples
Struts 2 Date Examples       In this section we will discuss the date processing functionalities available in the Struts 2 Framework. After reading the tutorials you will lean how to use date functions
Struts 2 version 2.3.15.3 released
Struts 2 version 2.3.15.3 released - Download and use the latest version of Struts 2 The latest version Struts 2, version  2.3.15.3 released... to use the latest version of Struts 2 libraries. If you can using maven you just
Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print ++a in the same printf() command ten times)
Can u print in turbo C  Can u print in turbo c 9 8 7 6 5 4 3 2 1 0 using pre increment operator Only use print ++a in the same printf() command ten times
Magicbox 2
Magicbox 2  how to build this? import java.util.*; class magicbox...; } } } } v15=a[0][0]+a[0][1]+a[0][2]==15 && a[1][0]+a[1][1]+a[1][2]==15 && a[2][0]+a[2][1]+a[2][2]==15 &&
Struts 2
Struts 2  we can extend DispatchAction class to implement a common session validation in struts 1.x. how to do the same in the struts2
Struts 2
Struts 2   I am just new to struts 2 and need to do the task. I have a requirement like this : when i click on link like Customer , this will display all the customers , address from a database table using jdbc and the screen
Struts 2
Struts 2  I am getting the following error.pls help me out. The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has
new 2
new 2  <%@page import="java.util.ArrayList"%> <%@page...; @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@2 sevelet @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@2 import java.io.IOException; import java.io.PrintWriter; import
Java Captcha in Struts 2 Application
a captcha Servlet and use in your Struts 2 application. Developing Struts 2 Captcha... and then use the same to validate Struts 2 based web applications. We have developed...Java Captcha in Struts 2 Application     
Echo 2
Echo 2       Echo 2 allows you to code Ajax apps in pure Java (Demo)which automatically generates HTML and Javascript. Read full Description
FireFox 2
FireFox 2       The award... to do on the Web, and Firefox 2 is full of helpful features to make your... Add-ons that enhance Firefox. It?s easy to personalize Firefox 2
Thunderbird 2
Thunderbird 2       Mozilla?s Thunderbird 2 email application is more powerful than ever. It?s now... Information Organized Thunderbird 2 features many new enhancements to help
Web 2
common characteristics. These include: Web 2.0 use network as a platform... and companies use it but they don?t know why? The reason may vary, but its utility... and the use of Microformats Organization and collection of data in RSS/Atom
Web 2
characteristics. These include: Web 2.0 use network as a platform... as they have no knowledge about it. Overall, many people and companies use it but they don... Semantically valid XHTML markup and the use of Microformats Organization
Web 2
that a usercan use according to its own ability and requirements. It can... use proprietary APIs, even though standard web-service APIs have also been used... services. The composition of WSDL with UDDI is expected to promote the use of Web
Web 2
interactivity in which user can upload anything, download anything and can use the content... refers to Rich Internet Applications (RIAs) that use the Internet as a platform
Struts 2 UI Tags
Struts 2 UI Tags Struts 2 UI Tags are mainly designed to use the data from your action/value stack or from Data Tags. These tags are used to display the data on the HTML page. The UI tags are driven by templates and themes. Struts 2
struts 2 testing
struts 2 testing  can i get an example for struts 2 action class unit test
regarding struts 2
regarding struts 2   is it not possible to get values from applicationresources.properties into our application in struts 2
Struts 2 - Validation - Struts
Struts 2 - Validation annotations  digging for a simple struts 2 validation annotations example
Struts 2 Validation
Struts 2 Validation  Hello,I have been learning struts. I have a problem in the validator tag. I have tried tutorials and got those. I have...(10) not null, constraint pkusers primary key (userid) ); PS: Use correct
Struts 2 Date Format Examples
; In this section you learnt how to use Struts 2 Date format tag.  ...Struts 2 Date Format Examples       In this tutorial you will learn about Date Format function in Struts 2. We
2's Complement
2's Complement  hi Can anyone plsss tell me the 2's complement java program... Thanks in advance
Where to learn Struts 2?
Where to learn Struts 2?  Hi, I am beginner in Struts and trying to find good tutorial to learn Struts 2 framework. My project is in Struts 2 and soon I have to work on the project. Let's know where to learn the Struts 2
Struts 2 Video Tutorial
Struts 2 Video Tutorial  I think its easy to learn from Struts 2 Video Tutorial. What is the url of Struts 2 Video Tutorial on roseindia.net website... your are right. You can learn Struts 2 very easily with the Struts 2 Video
Advertisements
 

 

 

DMCA.com