problem regarding autoboxing

problem regarding autoboxing

View Answers

January 14, 2009 at 6:30 AM

Hi friend,

The range of integers number between -128 and + 127 (inclusive) is 256
this is the same number of values which an unsigned 8 bit integer can contain (from 0 to 255).

Thanks

January 14, 2009 at 6:36 AM

HI friend,


Implement following code according to requirement :


import java.io.*;

public class TestDemo {

public static void main(String args[]) throws IOException {
System.out.println("Example of value comparing");
BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter first integer value! ");
int in = Integer.parseInt(buff.readLine());

System.out.println("Enter second integer value! ");
int in1 = Integer.parseInt(buff.readLine());

if(in == in1)
System.out.println("value are same!");
else
System.out.println("value are not same!");

}
}

------------------------------------

Visit for more information:

http://www.roseindia.net/java/

Thanks.

Amardeep

Ads









Related Tutorials/Questions & Answers:
problem regarding autoboxing - Java Beginners
problem regarding autoboxing    hello all , i have a problem regarding autoboxing Integer i = 127; Integer j = 127; if(i ==j) System.out.println("value are same"); else
problem regarding tomcat server 6.0
problem regarding tomcat server 6.0  Jul 27, 2012 10:39:19 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performanc e in production environments
Advertisements
Autoboxing unboxing in Java - Java Tutorials
.style1 { text-align: center; } Autoboxing and Unboxing The Autoboxing and Unboxing  was released with the Java 5. Autoboxing During...) is known as Autoboxing. During assignment or calling of constructor
Autoboxing in Java
Autoboxing in Java is the automatic transformation of primitive data types... primitive data types. Autoboxing or automatic transformation of primitive data... of Autoboxing in Java: public class MainClass { public static void main(String args
regarding rev
regarding rev  write a prog. in java that display all the arguments passed at the command line in reverse order
Regarding repository
Regarding repository  How to check in and check out using SVN repository using eclipse
Regarding Hibernate
Regarding Hibernate  Both JDBC and Hibernate are used to connect to database then whats the need of going to hibernate? What are the main differences? And could you let me know please
Regarding Project
Regarding Project  sir, i am doing a project in java. my project is CITY GUIDE it is an web application. please give me documentation of my project
Regarding Project
Regarding Project  sir, i am doing a project in java. my project is CITY GUIDE it is an web application. please give me documentation of my project
Problem with loginbean.jsp
Problem with loginbean.jsp  http://www.roseindia.net/jsp/loginbean.shtml - I am getting an error in loginbean.jsp.There is some error regarding .What is hello in this? Also in this example how
Regarding javascript
Regarding javascript  Hi, I want 4 upload buttons in HTML CODE and Among 4 browse buttons user is not selected any one then provide a prompt message like plz select any 1 file among 4 buttons.If user is selected either 1st
Regarding Datasource
Regarding Datasource  Hi friend, Good morning,how r u,i want to share 1 information to u,I got a job in VERIZON DATA SERVICES INDIA PVT.LTD,u help a lot when i am in academic project,with that project only i got a job
regarding jtable...
regarding jtable...  sir, im working with jtables. i wanted to populate a jtable from the database and when i click any row it should add a container below that row itself and show the required details of the row
Regarding JSP code
Regarding JSP code   hello sir tell me the way to navigate different type of user like manager and client from same login page to different interfaces in JSP code I am using Oracle 10g database .Exactly problem with me is that i
regarding interview in java
regarding interview in java  why java doesnot suppor muliple inheritance   Java does not support multiple inheritance directly..., JVM get some abigious problem and will get confused as which method
regarding images in jsp
regarding images in jsp  Hi, When I am trying to display an image in jsp, i am getting the image of bar charts in webroots/jspchart/web... me out in fixing the solution for my problem? Thanks in advance
query regarding arraylist
query regarding arraylist  i m using sql server + jsp to develop my program. i have a problem of fetching data from the table in database. i m storing my keys in arraylist, now i want to get data according to that keys. keys
regarding project
regarding project  OBJECTIVES OF THIS PROJECT: -Ability to test the programmer for basic interaction skills to understand the client requirement. -Ability of the programmer to ask the right questions and get the relevant
regarding project
regarding project  OBJECTIVES OF THIS PROJECT: -Ability to test the programmer for basic interaction skills to understand the client requirement. -Ability of the programmer to ask the right questions and get
Regarding path settings in java
Regarding path settings in java  Hello I had a problem... the solution for the problem whether there is any fault in settings or compiling(javac Hello.java).Recently i posted the same problem and some other guy gave me
regarding project
regarding project   sir we need help about project. we have idea about his project please guide me sir. OBJECTIVES OF THIS PROJECT: -Ability to test the programmer for basic interaction skills to understand the client
Query regarding JSP, JDBC
Query regarding JSP, JDBC  can I get the code for the question asked by me regarding JSP,JDBC
Regarding weblogic portal
Regarding weblogic portal  Hi, My name is Ramanuja.i am working on weblogic portal.if u know any info regarding plz provide the materials or information to me.plz help me. Thanks in advance
regarding struts 2
regarding struts 2   is it not possible to get values from applicationresources.properties into our application in struts 2
Regarding GUI Applications
Regarding GUI Applications  How to create a save and open jmenu item in java desktop application
Regarding core java
Regarding core java  how do we find reverse of string with out using String functions
Regarding Documentation of Packages
Regarding Documentation of Packages  Hello How to get java packages ie documentation of classes ,Interfaces and methods from windows command prompt.In the sense Java.lang,java.awt,java.math etc
Query regarding hashmap
Query regarding hashmap  I want to store some names and ids in hashmap in session, then retrieve it on next page and iterate through ids to run a query using ids one at a time
Regarding junit testcases
Regarding junit testcases  Can Any one help me ..How to write junit testcase for Email (plz dont give links ...i want code
doubt regarding JSF
doubt regarding JSF  Hi, pls explain what is difference between struts &JSF? pls explain what is difference between SPRING &JSF
Regarding frames in HTML
Regarding frames in HTML  I have created a html page including two frames in it,one frame consists "search bar" and the other frame consists login... regarding this...thanks
Doubt Regarding Charts
Doubt Regarding Charts  Hi, Can you please help me out by answering "hoe to include charts in core java code and struts code" thanks in advance, Swaroop Eswara   Please visit the following link: Jfreechart
Regarding Regular Expressions
Regarding Regular Expressions  Hi I would like to supply my regular expression with a 'default' value, so if the thing I was looking for is not found, it will return the default value as i have mentioned in the Regular
want help regarding a project
want help regarding a project  hiii this is hemangi and I want guidance that I am working on a project of hospital management system so I want guidance that how can i implement that in swings or with other frame work? and any
query regarding multiple select
query regarding multiple select  i have a select in jsp with multiple options.When i select multiple values i am not able to insert it into database and how do i retrieve them..please help me with an example code
Regarding Documentation of API
Regarding Documentation of API  Hello How to get java documentation of classes ,Interfaces and methods from windows command prompt.In the sense Java.lang,java.awt,java.math,java.io etc. Kindly tell the solution. View Answers
Regarding Database Creation
Regarding Database Creation  How to use the hibernatetutorial database for running the first application. Is it enough to just create the database on the local host or do we need to create the tables in the database. If i need
Regarding Documentation of API
Regarding Documentation of API  Hello How to get java documentation of classes ,Interfaces and methods from windows command prompt.In the sense Java.lang,java.awt,java.math,java.io etc. Kindly tell the solution. How to type
Regarding 2 windows
Regarding 2 windows  Hi, I want 2 separate windows,when i click on a 1st window submit btn then it will show 2nd window. In 2nd window i want 1 textbox.i entered some text on that text box and when i close the 2nd window
Doubt regarding charts and jsp
Doubt regarding charts and jsp  Hi, I successfully executed the bar chart in normal java application. But I want the Bar Chart to be executed in web application(jsp). So,please help me out in how to connect the normal
Doubt regarding charts and jsp
Doubt regarding charts and jsp  Hi in the http://www.roseindia.net/chartgraphs/barchart-jsppage.shtml of the code (new StandardEntityCollection()); final File file1 = new File("../webapps/jspchart/web/barchart.png
Query regarding JSP, JDBC
Query regarding JSP, JDBC  I have a table in SQL Server database storing some ids and names. In my jsp code a while loop is displaying the list of names from the database as links. I want that on click of a link of name furthur
Doubts regarding images
Doubts regarding images  hello, I am dynamically generating an image in my system with out using database.. And i want the same image if i access the address bar url in other system image xhould be occur in other system
Help Regarding MXML and SWF
Help Regarding MXML and SWF  hello sir I have a folder. It contains of a HTML file whick run into a browser and it gives us a login page. then the swf file.it is the source of that html page. i decompiled the swf file and now
Help Regarding MXML and SWF
Help Regarding MXML and SWF  hello sir I have a folder. It contains of a HTML file whick run into a browser and it gives us a login page. then the swf file.it is the source of that html page. i decompiled the swf file and now
Regarding one business scenario
Regarding one business scenario  Ya actually i have a requirement which is I have four questions 1.DOB? 2.DOJ
Regarding Image in Swings
Regarding Image in Swings  Hi, I have some requireemnt like when i click on the button in frame,it wil display the image.....plz do the needful.............   import java.awt.*; import java.io.*; import javax.swing.
problem in onlinetest...
problem in onlinetest...  hi, my code getting the problem is ,when user leave a question then the server puts error... pls help me
regarding css file in my eclipse
regarding css file in my eclipse  hai frns i want a small help frm u.when ever i use css file in html or normal web browsers the output is coming... the output is not changing can anyone please tell me a solution regarding
javascript problem
javascript problem  hi guys My problem is that I am using radio button for yes or no but i want to do that if I press yes button then enter... enter please help me this problem

Ads