When I run java enabled application software, I am not getting numerical values in the grid table.
I get the following error message:
STRING INDEX OUT OF RANGE: 15
How to fix this problem
public class HELLOWORLDAPP {
public static void main(String args[]) {
// TODO code application logic here
int a,b,c;
System.out.println("Enter a:");
a=Integer.parseInt(args[0]);
System.out.println("Enter b:");
b=Integer.parseInt(args[1]);
c=a+b;
System.out.println(c);
}
I have type the above code in netbeans ide. But i am receiving error as
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
interfacessunil June 1, 2012 at 7:54 PM
How to use the interfaces in abstract class in details?
String index out of rangemahesha June 16, 2012 at 7:32 AM
When I run java enabled application software, I am not getting numerical values in the grid table. I get the following error message: STRING INDEX OUT OF RANGE: 15 How to fix this problem
java code shows errorRUSHIT PARIKH August 25, 2012 at 12:59 PM
public class HELLOWORLDAPP { public static void main(String args[]) { // TODO code application logic here int a,b,c; System.out.println("Enter a:"); a=Integer.parseInt(args[0]); System.out.println("Enter b:"); b=Integer.parseInt(args[1]); c=a+b; System.out.println(c); } I have type the above code in netbeans ide. But i am receiving error as Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
Post your Comment