3:50 pm - Sunday February 19, 7617

Tag Archives: Integer

Integer Example Program for string to string()

/** * @author:candidjava.com * @Description: this returns a string object representing the specified *               integer. */ public class Stringtostreg { void strint() { Integer x = 7; System.out.println("with...

Integer Example Program for short shortValue()

/** * @author:Candidjava.com * @description: Program that use shortValue method of Integer class to convert *               into short type. */ public class Integershort { public static void main(String[] args) { Integer...

Integer Example Program for static Byte decode(String nm)

/** * *@author:candidjava.com *@description:java Byte Example program for static Byte decode(String nm) */ public class ByteDecode { public static void main(String[] args) { Byte b1, b2, b3; // creating 3 Byte objects b1...

Java Integer Example Program for static String toOctalString(int i)

/** * *@author:candidjava.com *@description:java Integer Example program for static string toOctalString(int * i) */ public class StringToOctalString { public static void main(String[] args) { String...

ArrayList Example Program for get(int index)

/** *@author :CandidJava.com *@descriptions : This program explain the function and use of E get(int index).It is used get an element in specified index of arrayList */ import java.io.*; import java.util.*; public class ArrayListGet { public...

ArrayList Example Program for contains(Object o)

/** *@author :CandidJava.com *@descriptions : This program explain the function and use of boolean contains(Object o).It is used to check whether given element exist in the List or not */ import java.io.*; import java.util.*; public...

ArrayList Example Program for removeRange(int fromIndex, int toIndex)

/** *@author :CandidJava.com *@descriptions : This program explain the function and use of removeRange(int fromIndex, int toIndex).It is used to remove element from between given index range values */ import java.io.*; import java.util.*; public...

ArrayList Example Program for remove(Object o)

/** *@author :CandidJava.com *@descriptions : This program explain the function and use of remove(Object o).It is used to check whether first occurence of given element is removed from list or not */ import java.io.*; import java.util.*; public...

ArrayList Example Program for remove(int index)

/** *@author :CandidJava.com *@descriptions : This program explain the function and use of remove(int index).It is used to remove an element from list by using index value */ import java.io.*; import java.util.*; public class ArrayListRemoveIndex { public...

Long Example Program for toString(long i)

/** @author:candidjava @desription: This example shows how Integer value can be changed to String. */ public class IntegerToString { public static void main(String[] args) { int a=67; System.out.println("Integer:"+a); String...

Short Example Program for valueOf(String s,int radix)

/** @author: candidjava @description: valueOf(String s,int radix) this method is used to a Short object holding the value represented by the string argument in the specified radix. */ public class ShortValueOf extends Dee { public static...

Short Example Program for parseShort(String s,int radix)

/** *@author :CandidJava.com *@descriptions : This program explains how the first string argument converted as a signed short in the radix specified by the second argument. */ public class ParseShort { public static void main(String...

StringBuilder Example Program for charAt(int index)

/** @Author :candidjava.com @Description: Returns the char value in this sequence at the specified index. */ import java.io.*; import java.lang.*; import java.io.IOException; public class StringBuilder1 { public static void main(String...

Float Example program for intBitsToFloat(int bits)

/** Author :candidjava.com Description: Returns the float value corresponding to a given bit representation. */ import java.io.*; import java.lang.*; import java.io.IOException; public class IntBitsToFloatExample { public static...

Byte Example Program for valueOf(String s,int radix)

/** * @author :candidjava.com * @descriptions : Assign the value of wrapper datatype Byte object are calling * valueOf method and passing the argument of string value and * radix value to print the result...

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

/** *@author :candidjava.com *@descriptions : given the string value for valueof method convert integer as a result. */ public class ValueOf4 { public static void main(String args[]){ Integer b = Integer.valueOf("444",16);//valueof(String...

Integer Example Program for valueOf(String s)

/** *@author :candidjava.com *@descriptions : given the string value for valueof method convert string as a result. */ public class ValueOf2{ public static void main(String args[]) { String b="978"; System.out.println(String.valueOf(b));...

Integer Example Program for valueOf(int i)

/** *@author :candidjava.com *@descriptions : given the integer value for valueof method convert integer as a result. */ public class ValueOf1 { public static void main(String args[]) { Integer a= Integer.valueOf(58)) ...

Integer Example Program for toString(int i,int radix)

/** *@author :candidjava.com *@descriptions : how to work with toString method isn (int I,int radix) variable */ public class ValueOf3 { public static void main(String args[]){ Integer x = 5; System.out.println(x.toString()); ...

Integer Example Program for toString(int i)

/** *@author :candidjava.com *@descriptions : given the integer value for tostring method convert result as integer */ public class ToStringEx { public static void main(String args[]){ Integer x = 5; System.out.println(x.toString()); ...