August 18th, 2012, 05:11 PM
Can someone help me with this code and its error? im java beginner.
i got some errors,,,
can yu spot me where i made mistake,,!
the java coding is
public static void main(String a)
Scanner s=new Scanner(System.in);
System.out.println("enter ram mark");
System.out.println("average mark of ram is" +avg+ "!");
August 18th, 2012, 05:51 PM
Did you get any error message? please post it.
Did not get the expected result? please tell what you got and what you expected.
When posting code, please use code tags. Read the sticky posts for more information.
you have defined avg (as float) twice