3:29 pm - Monday June 21, 7717

Long Example Program for toHexString(long i)

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
@desription:This example shows how Integer value can be changed to Hexa String.
*/
public class IntegerToStringHexa {
	public static void main(String[] args) {
		int a=78;
		System.out.println("Integer:"+a);
		String b=Integer.toHexString(a);
		System.out.println(b);

	}

}

output:
Integer:78
4e

Filed in: Z-A All Java Codes

Comments are closed.