what's wrong with this class:
class reverse { public static void main(String[] ar) { Console c=System.console(); System.out.print("Enter the first number:"); String n=c.readLine(); System.out.print("Enter the second number:"); String m=c.readLine(); int[] arr1=Integer.parseInt(n); int[] arr2=Integer.parseInt(m); } }
I mean, i know string cant be parsed into an integer array.. so what's the way out??