3:53 pm - Friday March 24, 5550

Short Example Program for decode(String nm)

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
Description: Program using SHORT decode () method
*/
import java.io.*;
public class Decode
{
public static void main(String args[]) throws Exception
{
String s="-34";
Short t=Short.decode(s);       // Decodes a String into a Short
System.out.println(t);
}
}

OUTPUT:

-34

BACK

Filed in: Z-A All Java Codes

Comments are closed.