3:53 pm - Tuesday March 25, 3045

Tag Archives: Integer

Integer Example Program for toOctalString(int i)

/** *@author :candidjava.com *@descriptions : Assign the value in declared integer variable this integer value passing the toOctalString method.This method convert given the integer value to octal values. */ public class ToOctalStringEx...

Integer Example Program for toHexString(int i)

/** *@author :candidjava.com *@descriptions : Assign the value in declared integer variable this integer value passing the toHexString method.This method convert given the integer value to Hexa values. */ public class ToHexStringEx { public...

Integer Example Program for toBinaryString(int i)

/** *@author :candidjava.com *@descriptions : Assign the value in declared integer variable this integer value passing the toBinaryString method.This method convert given the integer value to binary values. */ public class ToBinaryStringEx...

Integer Example Program for signum(int i)

/** *@author :candidjava.com *@descriptions : Assign the value in declared integer variable this integer value passing as signum method.This signum method convert given the integer value is +ve,-ve or zero. */ public class SigNumEx{ public...

Integer Example Program for shortValue()

/** *@author :candidjava.com *@descriptions : First Check with Short datatype range, */ public class ShortValueExample { public static void main(String[] args) { Integer a=35000; Integer d = new Integer(35000);...

Integer Example Program for rotateRight(int i,int distance)

/** *@author :candidjava.com *@descriptions : Convert the binary values and using RotateRight method,will get o/p integer value rotated */ public class RotateRightEx { public static void main(String[] args) { int i=1,distance=2; ...

Integer Example Program for rotateLeft(int i,int distance)

/** *@author :candidjava.com *@descriptions : Convert the binary values and using RotateLeft method,will get o/p integer value rotated */ public class RotateEx { public static void main(String[] args) { int i=1,distance=2; ...

Integer Example Program for parseInt(String s,int radix)

/** * @author :candidjava.com * @descriptions : Assign the value in declared string variable. this string * value passing as parseInt method after integer radix value * passing this method.This method convert...

Integer Example Program for parseInt(String s)

<br />/**<br />@Author:Candidjava.com<br />@Description: Assign the value in declared string variable this string value passing as parseInt method.This method convert String to  integer.<br />**/<br />package Basics;<br...

Integer Example Program for numberOf TrailingZeros(int i)

/** @Author:Candidjava.com @Description: : Assign the value in declared integer variable this integer value passing as numberOfTrailingZeros method.This method calculate numberoftrailing zero to given the integer value. */ public class...

Integer Example Program for numberOf LeadingZeros(int i)

/** * @Author:Candidjava.com * @Description: Assign the value in declared integer variable this integer * value passing as numberOfLeadingZeros method.This method * calculate numberofleading zero to given...

Integer Example Program lowestOneBit(int i)

/** *@author :candidjava.com *@descriptions : Assign the value in declared integer variable this integer value passing theLowestOneBit method.This method convert given the integer value to bit values. */ public class LowestOneBitEx { public...

Integer Example Program for longValue()

/** * @author :CandidJava.com * @descriptions : This program explain the function and use of Integer as * return as long value */ class IntegerLong { public static void main(String arg[]) { Integer l = new...

Integer Example Program for intValue()

/** * @author :CandidJava.com * @descriptions : This program explain the function and use of Integer as * return as int value */ class IntegerExample { public static void main(String arg[]) { Integer i = new...

Integer Example Program for highestOneBit(int i)

<br /> /**<br /> *@author :CandidJava.com<br /> *@descriptions : This program explain the function using to return highest one bit value for Integer value<br /> */<br /> public class IntHighestOneBit<br...

Integer Example Program for hashCode()

/** * @author :CandidJava.com * @descriptions : This program explain the function and use of Integer as * return as hashCode (address) value */ class IntHashCode { public static void main(String arg[]) { Integer...

Integer Example Program for floatValue()

/** *@author :CandidJava.com *@descriptions : Basic Integer program using DoubleValue(); */ import java.io.*; class FloatVal { public static void main(String args[]) { Integer i = new Integer(109); // Object creation for...

Integer Example Program for equals(Object obj)

/** *@author :CandidJava.com *@descriptions : Basic Integer program using Equals(); */ import java.io.*; class EqualsEx { public static void main(String args[]) { Integer m = new Integer(200); // Object creation for integer...

Integer Example Program for doubleValue()

Integer Example Program for doubleValue()

/** *@author :CandidJava.com *@descriptions : Basic Integer program using DoubleValue(); */ import java.io.*; public class DoubleValueEx { public static void main(String args[]) { Integer i = new Integer(107); // Object creation...