By GokiSoft.com| 09:51 28/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

#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 gokisoft;

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


#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("Hello 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!!!");
        int x = 5;
        int y = 8;
        int z = x + y; //13
        System.out.println("Ket qua " + x + " + " + y + " = " + z);
        System.out.format("Ket qua %d + %d = %d\n", x, y, z);
        
        char c = 'C';
        String str = "Sinh vien Aptech";
        System.out.println("Ket qua: " + str);
        
        //Nhap du lieu
        Scanner tenbien = new Scanner(System.in);
        
        //Nhap chuoi str
        System.out.println("Nhap str: ");
        str = tenbien.nextLine();
        
        System.out.println("Str = " + str);
        
        System.out.println("Nhap x = ");
        x = tenbien.nextInt();
        System.out.println("x = " + x);
        
        System.out.println("Nhap y = ");
        y = tenbien.nextInt();
        System.out.println("y = " + y);
        
        //Nhap string => error
        tenbien.nextLine();
        System.out.println("Nhap str: ");
        str = tenbien.nextLine();
        
        System.out.println("Str = " + str);
        
        //Fix 2
        System.out.println("Nhap y = ");
        y = Integer.parseInt(tenbien.nextLine());
        System.out.println("y = " + y);
        
        System.out.println("Nhap str: ");
        str = tenbien.nextLine();
        System.out.println("Str = " + str);
    }
    
}


#run.bat


java -jar C2010G.jar
cmd


#guideline.txt


SEM1: (Lập trình chức năng - function)
	- Frontend: HTML/CSS/JS/Bootstrap/jQuery (VueJS/Angular 9, 10/ReactJS) -> Code Frontend
	- Backend: PHP => MySQL => Code Backend => Framework: Laravel 8/Zend/... (Base kha kha: Frontend)
	- CSDL: SQL Server/MySQL => Code Database.

SEM2: Luyện kỹ năng lập trình OOP (Logic)
	- Java Basic (Java I)
	- Java Advanced (Java II)
	- XML/JSON
	- C# (Basic - Console)

	Kiến thức: Bài toán => đối tượng cần quản lý (sinh viên, sách, thư viện, điểm thi, môn học, ...) => Thuộc tính, hành động => Mapping => Vào trong ngôn ngữ lập trình.

	OOP: Kiến thức core => Học các công nghệ khác

	Công việc sẽ làm sau khi kết thúc SEM2

	1) Lập trình Java Web (Ngân hàng, Tài Chính, Chứng Khoán, ...)
	- SEM4: (JSP/Servlet - Spring MVC/Boot - Hibernate/Persistence - WS) -> Core trong công việc.
	2) Lập trình Mobile Android
	- Android Java: 2 năm => Rất hot => Maintain. 3 năm nữa => giảm dần
	- Android Kotlin: 2 năm gần đây => Google phát triển => Xu hương mới của Android. (Song song 2 ngôn Java & Kotlin)
	- Dart/Flutter (Code Cross Platform: Android & iOS) => SDK Flutter + Dart => Giảm chi phí => nhanh => Aptech. (SEM4)
	3) .NET - Microsoft
	- Ứng dụng PC -> Winform -> SEM3
	- Lập trình web .net (ASP .NET: MVC - Micro Service) -> SEM3
========================================================================
So sánh C & Java

1) C
Code C -> Compile (Dev C) -> .exe (binary) -> Chạy luôn

2) Java
Code Java -> Compile -> .class (byte code) -> JVM -> binary -> chạy được

Cài đặt môi trường:
- JDK: Toolkit -> phát triển Java (Thư viên) + JVM
- IDE: Netbean


Tags:

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

5

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