Saturday, 17 January 2015

Cara Konfersi String Ke Integer dengan Java

COntoh 1: public class Exceptinghandling { /** * @param args the command line arguments */ public static void main(String[] args) { long x=321; try { System.out.format("%3d%n",x); } catch (Exception e) { System.out.print("Ada Keslahan Pada : "); System.out.println(e); } } }

No comments:

Post a Comment