Please help me debug this JAVA(source code)program! It can be compiled,but it does not run!!!? - tally error error code c0000005
*** After this together go.java than javac, which has no errors, but when I run it now as "java" Go "can not be executed. Says Exception in thread" main "java. .... Long ArrayIndexOutOfBoundsException 0 . go main (go.java: 3)
*** The source code: (Please help me to debug and run this program, please JAVA)
Class go (
public static void main (String [] args) (
String s = args [0];
int [] f = count (s);
)
int [] (String s count) (
int [] f = new int [26];
s.toUpperCase s = ();
for (int i = 0, i \\ \\ \\ \\ \\ \\ \\ \\ u0026lt, s.length (); i + +) (
char ch = s.charAt (i);
if (Character.isLetter (CH)) (
int j = CH - 'A';
+ + F [j];
)
)
return f;
)
void print (int [] f) (
for (int i = 0, j \\ \\ \\ \\ \\ \\ \\ \\ u0026lt; f.length j + +) (
char ch = (char) (j + 'A');
if (f [j]> 0)
System.out.println (CH + "" + f [j]);
)
)
)
Tuesday, February 23, 2010
Tally Error Error Code C0000005 Please Help Me Debug This JAVA(source Code)program! It Can Be Compiled,but It Does Not Run!!!?
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment