By GokiSoft.com| 20:01 29/06/2021|
Java Basic

[Share Code] Định hướng nghề nghiệp + Tìm hiểu về Java - Cài đặt môi trường - Biến - Scanner trong Java - C2010L


I) SEM1 - Tư duy lập trình theo kiểu thủ tục/chức năng (function) - Frontend: (HTML/CSS/JS/jQuery) - ReactJS/Angular 9,10/VueJS -> Khá rông. - PHP/Laravel (MySQL & HTML/CSS/JS/jQuery) - Laravel framework -> Apply. - SQL Server (MySQL): Phát triển chuyên sâu. II) SEM2 - OOP - Lập trình hướng đối tượng. - Java Basic (Java I) & Java Advanced (Java II) - XML/JSON & NCC - C# 1) Java Web (SEM4) - JSP/Servlet - Spring MVC/Boot + Hibernate (Persistences) 2) Mobile - Java Android: SDK android - Kotlin Android: (Studio Android + Kotlin) -> Google -> Học này trước. - Dart/Flutter: Google -> Cross Platform -> Build Android + iOS -> Aptech. (SEM) 3) .NET SDK (C#, ASP, ..) - Window Form: SEM3 - Web ASP.NET (MVC & Micro Service): SEM3 ==================================================================== Nội dung: Java Basic (Java I) ==================================================================== Nội dụng kiến thức: - Hiểu được Java là gì? so sánh vs C. - Cài đặt môi trường - JDK (8 + 16) - Netbean - Tạo dự án đầu tiên & deploy dự án Java - Tìm hiểu kiến Java core (Khái báo biến, mệnh đề điều kiện, toán tử, ...) IDE: Netbean, sublime text, notepad++, ...




#Test02.java


/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Diep.Tran
 */
public class Test02 {
    public static void main(String[] args) {
        System.out.println("TEST");
    }
}


#Test01.java


/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package aptech;

/**
 *
 * @author Diep.Tran
 */
public class Test01 {
    public void show() {
        System.out.println("OKOK");
    }
}


#Test.java


/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package aptech;

/**
 *
 * @author Diep.Tran
 */
public class Test {
    public static void main(String[] args) {
        System.out.println("Test test ...");
    }
}


#Main.java


/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package aptech;

import java.util.Scanner;

/**
 *
 * @author Diep.Tran
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        System.out.println("Hello World 1!!!");
        System.out.println("Hello World 2!!!");
        System.out.println("Hello World 3!!!");
        System.out.println("Hello World 4!!!");
        System.out.println("Hello World 5!!!");
        
        int x = 5;
        int y = 8;
        int t1 = 2, t2 = 6;
        char c = 'T';
        String s1 = "Sinh vien Aptech 54 LTN";
        String s2 = "ABC";
        String s = s1 + s2;
        s = s + x;
        System.out.println("s = " + s);
        int r = x + y;
        System.out.println(x + " + " + y + " = " + r);
        System.out.format("%d + %d = %d\n", x, y, r);
        
        //Nhap du lieu tu ban phim
        //Khai bao doi tuong nhap
        Scanner input =  new Scanner(System.in);
        
        //Nhap chuoi s
        System.out.println("Nhap s = ");
        s = input.nextLine();
        
        System.out.println("s = " + s);
        
        System.out.println("Nhap x = ");
        x = input.nextInt();
        System.out.println("x = " + x);
    }
    
}


Tags:

Phản hồi từ học viên

5

(Dựa trên đánh giá ngày hôm nay)