By GokiSoft.com|
19:28 10/04/2024|
Java Basic
Java Basic- Tạo dự án đầu tiên & phát hành dự án
Yêu cầu :
Viết chương trình hiển thị thông tin cá nhân của bạn bao gồm (tên, tuổi, địa chỉ, email, sđt)
Tạo file jar cho dự án -> chạy dự án bằng lệnh cmd (window) hoặc terminal trong macosx
Tags:
Phản hồi từ học viên
5
(Dựa trên đánh giá ngày hôm nay)
![vuong huu phu [T2008A]](https://www.gravatar.com/avatar/307a5cf29780afab49706dc8b15b86c6.jpg?s=80&d=mm&r=g)
vuong huu phu
2021-01-21 10:20:53
/*
* 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 bai_1;
import java.util.Scanner;
/**
*
* @author Admin
*/
public class Bai_tap {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
String ten;
String dia_chi;
String email;
int tuoi, sdt;
Scanner scan = new Scanner(System.in);
System.out.println("Nhap ten = ");
ten = scan.nextLine();
System.out.println("Nhap dia chi = ");
dia_chi = scan.nextLine();
System.out.println("Nhap tuoi = ");
tuoi = Integer.parseInt(scan.nextLine());
System.out.println("Nhap email = ");
email = scan.nextLine();
System.out.println("Nhap sdt = ");
sdt = scan.nextInt();
System.out.println("Ten : " + ten);
System.out.println("dia chi : " + dia_chi);
System.out.println("tuoi : " + tuoi);
System.out.println("email : " + email);
System.out.println("sdt : " + sdt);
}
}
![Do Trung Duc [T2008A]](https://www.gravatar.com/avatar/2973ac07124f066b4605c535e8d39a99.jpg?s=80&d=mm&r=g)
Do Trung Duc
2021-01-21 04:03:06
/*
* 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_lesson1;
/**
*
* @author TrungDuc
*/
public class Thongtincanhan {
public static void main(String[] args) {
System.err.println("Ten: DoTrungDuc");
System.err.println("Tuoi: 30");
}
}
![nguyễn Sử [T2008A]](https://www.gravatar.com/avatar/47487be2776ac2ec915b0936ef7ab5ae.jpg?s=80&d=mm&r=g)
nguyễn Sử
2021-01-20 10:10:43
/*
* 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 baitap2;
import java.util.Scanner;
/**
*
* @author WIN10
*/
public class Baitap2 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
Scanner scan = new Scanner(System.in);
String ten;
String diachi;
String email;
String tuoi;
String sdt;
System.out.println("nhap ten : ");
ten = scan.nextLine();
System.out.println("nhap tuoi: ");
tuoi = scan.nextLine();
System.out.println("nhap dia chi : ");
diachi = scan.nextLine();
System.out.println("nhap email : ");
email = scan.nextLine();
System.out.println("nhap sdt : ");
sdt = scan.nextLine();
System.out.println("nhap ten = " + ten + ",nhap tuoi = " + tuoi + ",nhap dia chi = " + diachi + ", nhap email = " + email + ", nhap sdt = " + sdt);
}
}
![hainguyen [T2008A]](https://www.gravatar.com/avatar/32855ce6db55d60134d830aee06b41e5.jpg?s=80&d=mm&r=g)
hainguyen
2021-01-20 09:56:44
/*
* 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 t2008a_1;
import java.util.Scanner;
/**
*
* @author Admin
*/
public class T2008A_1 {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
String s = "TRAN VAN A";
int t = 16;
String n = "HA NOI";
String m = "a@gmail.com";
int p = 123456789;
System.out.println("s = " + s + ", t = " + t + ", n = " + n + ", m = " + m + ", p = " + p);
}
}
![Trần Thị Khánh Huyền [T2008A]](https://www.gravatar.com/avatar/554e115833778e4294a01aebe228f3d6.jpg?s=80&d=mm&r=g)
Trần Thị Khánh Huyền
2021-01-20 09:38:51
/*
* 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 Admin
*/
public class Main {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
String name = "TRAN THI KHANH HUYEN";
int age = 24;
String address = "Thach Hoa, Thach That, Ha Noi";
String email = "huyenttkth2006027@fpt.edu.vn";
String phoneNumber = "029220233";
System.out.println("Ten la: " + name);
System.out.println("Tuoi: "+age);
System.out.println("Dia chi: "+address);
System.out.println("email: "+email);
System.out.println("So dien thoai: "+phoneNumber);
}
}
![Nguyễn Tiến Đạt [T2008A]](https://www.gravatar.com/avatar/b5819cd0adc95c727c7ad0c2bcf6098b.jpg?s=80&d=mm&r=g)
Nguyễn Tiến Đạt
2021-01-20 09:30:36
/*
* 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 lesson1;
import java.util.Scanner;
/**
*
* @author MyPC
*/
public class StudentInfo {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String name, address, email, phone_number;
int age;
System.out.print("Họ và tên: ");
name = scan.nextLine();
System.out.print("Tuổi: ");
age = Integer.parseInt(scan.nextLine());
System.out.print("Địa chỉ: ");
address = scan.nextLine();
System.out.print("Email: ");
email = scan.nextLine();
System.out.print("Số điện thoại: ");
phone_number = scan.nextLine();
System.out.println("Họ và tên: " + name);
System.out.println("Tuổi: " + age);
System.out.println("Địa chỉ: " + address);
System.out.println("Email: " + email);
System.out.println("Số điện thoại: " + phone_number);
}
}
![Trần Văn Lâm [T2008A]](https://www.gravatar.com/avatar/cfc15c8cb7781ad669b013e01f9f1a6b.jpg?s=80&d=mm&r=g)
Trần Văn Lâm
2021-01-20 09:11:19
public static void main(String[] args) {
// TODO code Sapplication logic here
String Name ="Tran Van Lam";
int Age= 26;
String Address="Ha Nam";
String Email="lam@gmail.com";
String NumberPhone="133232323";
//Print
System.out.println("Name =" + Name);
System.out.println("Age =" + Age);
System.out.println("Address =" + Address);
System.out.println("Email =" + Email);
System.out.println("NumberPhone =" + NumberPhone);
}
![Đỗ Minh Quân [T2008A]](https://www.gravatar.com/avatar/fa40264d7c4b4209c87a9e9451d2b9f0.jpg?s=80&d=mm&r=g)
Đỗ Minh Quân
2021-01-20 09:10:48
/*
* 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 t2008a;
/**
*
* @author PC
*/
public class T2008A {
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
System.out.println("ten : do minh quan");
System.out.println("tuoi : 18");
System.out.println("dia chi : thang long");
System.out.println("email : dominhquan260902@gmail.com");
System.out.println("sdt : 0586543018");
}
}
![Nguyễn Hữu Hiếu [T2008A]](https://www.gravatar.com/avatar/ca2884508b617fee77f000c7d99c219d.jpg?s=80&d=mm&r=g)
Nguyễn Hữu Hiếu
2021-01-20 08:35:02
/*
* 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 UserName
*/
public class Ex1 {
public static void main(String[] args) {
System.out.println("Nguyen Huu Hieu");
System.out.println("22");
System.out.println("Hoai Duc - Ha Noi");
System.out.println("0389945947");
System.out.println("hieuuct209@gmail.com");
}
![Phí Văn Long [T1907A]](https://www.gravatar.com/avatar/5db166b7b74443c5c221e4c0068d6da9.jpg?s=80&d=mm&r=g)
Phí Văn Long
2020-04-18 06:14:23
/*
* 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 Scanner;
import java.util.Scanner;
/**
*
* @author Nong
*/
public class Main {
public static void main(String[] args) {
String name = " Phí Văn Long ";
int age = 18;
String address = " Quảng Ninh" ;
String email = "vipvigame@gmail.com";
String phone = "03558882001";
//hien thi
System.out.println("Name: " + name);
System.out.println("Age: " + age);
System.out.println("Address: " + address);
System.out.println("Email: " + email);
System.out.println("Phone number: " + phone);
}
}