Tài liệu SPECIAL JAVA SUBJECT part 1

Thảo luận trong 'Căn Bản' bắt đầu bởi Thúy Viết Bài, 5/12/13.

  1. Thúy Viết Bài

    Thành viên vàng

    Bài viết:
    198,891
    Được thích:
    167
    Điểm thành tích:
    0
    Xu:
    0Xu
    A Simple Java Program
    public class FirstSample{
    public static void main(String[] args)
    {
    System.out.println(Hello, World!);
    }
    }
    nJava is case sensitive
    nThe keyword public is called an access modifier
    nThe keyword class is there to remind you that everything in a Java program must be inside a class
    nThe main method in the source file is necessary in order to execute the program
    nThe System.out.println( ) is used to invoke method println of an object System.out
     

    Các file đính kèm:

Đang tải...
Chủ đề tương tự
  1. Thúy Viết Bài
    Trả lời:
    0
    Xem:
    279
  2. Thúy Viết Bài
    Trả lời:
    0
    Xem:
    417
  3. Thúy Viết Bài
    Trả lời:
    0
    Xem:
    268
  4. Thúy Viết Bài
    Trả lời:
    0
    Xem:
    327
  5. Thúy Viết Bài
    Trả lời:
    0
    Xem:
    411