answersLogoWhite

0


Best Answer

The Java Integer class is there to help with math. It is very useful and very recommended. To learn more information about it, go to the official Java page.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the Java integer class used for?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Math & Arithmetic

What is the code required to convert an integer variable to a string variable in Java?

There are several different methods to convert an integer variable to a string variable in Java. For example, one can use the following code to convert an integer variable to a string variable: Integer.toString(number)


What is the difference between advanced java J2EE?

J2EE stands for Java 2 Enterprise Edition. It is used to create enterprise class web applications that can be used by large enterprises and corporations. Most websites of major companies are created using j2ee. Some of the technologies used in J2ee are: a. Struts b. Hibernate c. JSP d. Servlets e. Spring f. etc Whereas Advanced Java refers to the advanced topics of java that can be used in regular java programs. Some topics under Advanced Java are: a. Exception Handling b. Threading/Multi-Threading c. Remote Method Invocation d. Serialization e. etc


What is the difference between division and integer division?

In integer division, you expect the result to be an integer. Anything left over will be quoted as a remainder. The more commonly used division (not integer division) will continue calculating decimals, up to the desired accuracy.


Can the denominator of a rational number be used as any integer?

No. 3/(1/7) is a rational number. However, (1/7) cannot be used as an integer. Incidentally, the number equals 21.


Which statement is true the square root of an integer will always be an integer or the square of an integer will always be an integer?

the square of an integer will always be an integer

Related questions

What are the constructor method of integer class?

If you mean Java, you can get the documentation for the Integer class (with an uppercase "I") here: http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/Integer.html


The diff between int integer?

In Java, an int is a primitive type and an Integer is a class. Basically, an Integer is just an int primitive wrapped up in a class. Mainly this is used for the generics introduced in Java 1.5. Primitive types cannot be used as generic types, so there was a need for classes to wrap around all primitive types so that you can declare things such as List<Integer>.


What is mean by Classes and Objects?

an Object is an instance of the Class for ex: Integer i = new Integer (1); i is an object of the Class Integer. of courses classes contain variables and methods and constructors. although the Object Class is a different case, it's the main class that all the classes in java are subClasses of it


Why using parseInt in java?

parseInt is a method in the Integer class in java and is used to parse string values into integer numbers. ex: int i = Integer.parseInt("10"); After the above line of code, the variable i will be assigned a value of 10 which is the numeric value of the string passed as argument to the parseInt method


Write a program to revrse the given integer and print it backwords?

In Java, you might use the StringBuffer class. Convert the integer to a StringBuffer, use the method to revert it - I believe it is revert() or something; look it up in the documentation - then print it.In Java, you might use the StringBuffer class. Convert the integer to a StringBuffer, use the method to revert it - I believe it is revert() or something; look it up in the documentation - then print it.In Java, you might use the StringBuffer class. Convert the integer to a StringBuffer, use the method to revert it - I believe it is revert() or something; look it up in the documentation - then print it.In Java, you might use the StringBuffer class. Convert the integer to a StringBuffer, use the method to revert it - I believe it is revert() or something; look it up in the documentation - then print it.


What type of file is created by Java?

Java created a file called class, and is identified by having the .class at the end. This file includes a Java bytecode, which then can be used on the Java Virtual Machine.


What is parse Int?

parseInt() is a method in the Integer class in Java that is used for parsing string values as numbers. int i = Integer.parseInt("10"); would result in i being assigned a value of 10


How can someone convert string to int in Java?

To convert string to int in Java, the easiest way is to simply use the method Integer.parseInt(). For more information how to do this, refer to the integer class documents.


Extension file for Java?

Java source files have the .java extension, compiled Java class files have the .class extension.


Any algo is used for converting class file to java source file?

You need a decompiler to convert class files to java source files. JAD is a Java Decompiler that can do it for you.


What is static java most commonly used for?

Static java method is the same as a static variable. They belong to a class and not an object of that class. If a method needs to be in a class, but not tied to an object, then one uses static java.


How do you campaire Strings in java?

String class in Java has an 'equals' method that can be used to compare strings.