i understant now why the errors because there is no method so i put the method and its really nice to see that no errors in the code but when i open the .class file it give me this statment
>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>
Exception in thread "main" java.lang.NoSuc hMethodError: main
>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>...
User Profile
Collapse
-
i talled you guys i am new in java i used to programming in c++ and when i did
this very simple program i was using my information about c++ but never mind i didnt copy this problem without reading java tutorial but maybe you are see it simple problem for you but for me its not and i did a program that compute the result without the user enter the number but any way thx for help and the information its really helpful and of cource in the...Leave a comment:
-
i did all the things you told me guys but i am still having the same errors
this is the the new code
2 errorsCode:import java.util.Scanner; public class cal{ Scanner read = new Scanner(System.in); int a =read.nextInt(); int b =read.nextInt(); int c =a+b; System.out.println (c); }
>>>>>>>>>>>>>>> >>>>>>>>>...Leave a comment:
-
thx for the information a lot sukatoa its really helped me
now the code is like this
there are 2 errorsCode:import java.io.*; import java.util.Scanner; public class cal{ Scanner read = new Scanner(system.in); int a =read.nextInt(); int b =read.nextInt(); int c =a+b; system.out.println(c); }
>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>...Leave a comment:
-
Adding 2 Number In Java
HI PPL
I DID A SIMPLE PROGRAM THAT ADD 2 NUMBER BUT I AM HAVING PROBLEM IN ENTER THE NUMBER FROM THE USER
>>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>>>>>>>>>>>> >>>>...Code:import java.io.*; public class cal{ int a=0; int b=0; int c=0; a =reader.readLine(); b =reader.readLine(); c =a+b; system.out.println(c); }
No activity results to display
Show More
Leave a comment: