By GokiSoft.com|
15:31 12/06/2023|
Java Basic
[Share Code] Hướng dẫn cài đặt môi trường & tạo dự án đầu tay - C2209I
Tổng quan kiến thức:
- Kiến thức core căn bản
- Tìm hiểu khái OOP & Cấu trúc
OOP:
Class -> Lớp -> Lớp đối tương
Thuộc tính & function (hàm) - method (phương thúc)
- Tìm hiểu mô hình hoạt động Java (C/C#,...)
- Cài đặt môi trường
JDK: jdk0, jdk11, jdk17, jdk18
- Khai báo biến
- Toán tử & biểu thức điều kiện
- Mệnh đề điều kiến (if, else, switch)
- Vòng lặp (for, while, do ... while)
- Mảng
- Index -> Giống C/C++
- Collection -> Mảng động
- ArrayList
- Vector
- OOP
T/c trong lập trình OOP
- Tính chất bao đóng
- T/c kế thừa
- T/c đa hình
- T/c trừu tượng
Lambda
Hàm tiện ích trong Java 8
- Java Swing (Java FX)
=========================================================================
#pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.gokisoft</groupId>
<artifactId>C2209I</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>com.gokisoft.c2209i.C2209I</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>20</maven.compiler.source>
<maven.compiler.target>20</maven.compiler.target>
<exec.mainClass>com.gokisoft.c2209i.C2209I</exec.mainClass>
</properties>
</project>
#C2209I.java
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
*/
package com.gokisoft.c2209i;
/**
*
* @author teacher
*/
public class C2209I {
public static void main(String[] args) {
System.out.println("Hello World!");
System.out.println("Xin chao ...");
}
}
#Test.java
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package com.gokisoft.c2209i;
/**
*
* @author teacher
*/
public class Test {
public static void main(String[] args) {
System.out.println("OKOK");
}
}
#Test01.java
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
*/
package com.gokisoft.c2209i;
/**
*
* @author teacher
*/
public class Test01 {
public void abc() {
System.out.println("okok");
}
}
Tags:
Phản hồi từ học viên
5
(Dựa trên đánh giá ngày hôm nay)