0
Which package should i include while writing hello world programme??
there is an error while writing a hello world programme. it is asking for package? can you solve my problem??
1 Resposta
0
To get better help, upload your code or the error-message.
A HelloWorld program in Java usually looks like this:
public class HelloWorld{
public static void main(String[] args){
System.out.println("Hello, World!");
}
}
Then compile your code in the terminal window:
javav MyProgram.java
Then your can run it in the terminal window:
java MyProgram