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
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
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ử
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
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
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
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
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
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
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
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);
}
}