2:32 am - Tuesday April 23, 2019

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

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044
/**
*@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 s,int i)
		      System.out.println(b);
		     }
		}

Output:
<D:Candidjavalanginteger>ValueOf4 .java
<D:Candidjavalanginteger>java ValueOf4
1092

BACK

Filed in: Z-A All Java Codes

Comments are closed.