Every line of code that runs in Java must be inside a class. In our example, we named the class Main. A class should always start with an uppercase first letter.
Note: Java is case-sensitive: "MyClass" and "myclass" has different meaning.
public class Main {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
refer : bạch thủ lô nuôi khung 2 ngày
Top comments (1)
You should use backticks for code blocks