DEV Community

Mai Lượng
Mai Lượng

Posted on

Sample java code example

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)

Collapse
 
2kabhishek profile image
Abhishek Keshri

You should use backticks for code blocks


java
Enter fullscreen mode Exit fullscreen mode