0

hello world

i am new for java.. when i compile hello world program.. it shows error., but i copied the program shown in the theory.then, how can i correct it.

6th Jul 2016, 6:03 AM
saravanan jayaraj
saravanan jayaraj - avatar
9 Respuestas
+ 2
you do Javac program.java to create class file. then type Java program to run it
7th Jul 2016, 1:03 AM
James
James - avatar
0
what error it is showing??
6th Jul 2016, 6:20 AM
Bakul Gupta
Bakul Gupta - avatar
0
')' expected. in public static void main(string[] args)
6th Jul 2016, 6:26 AM
saravanan jayaraj
saravanan jayaraj - avatar
0
public class Program { public static void main(String[] args) { System .out.println ("Be Placid In Life"); } }
6th Jul 2016, 6:30 AM
Bakul Gupta
Bakul Gupta - avatar
0
like this copy ur program then paste it.. Then i will be able to solve ur problem
6th Jul 2016, 6:31 AM
Bakul Gupta
Bakul Gupta - avatar
0
when i compile.. it shows me the same command."javac program.java".(just i named it program). it doesn't show any output.
6th Jul 2016, 6:45 AM
saravanan jayaraj
saravanan jayaraj - avatar
0
just copy and paste the whole code here??
6th Jul 2016, 6:50 AM
Bakul Gupta
Bakul Gupta - avatar
0
it created a class file..in my directory. then..what is it means?
6th Jul 2016, 6:51 AM
saravanan jayaraj
saravanan jayaraj - avatar
0
thanks..bro
7th Jul 2016, 1:44 AM
saravanan jayaraj
saravanan jayaraj - avatar