diff --git "a/\345\220\264\346\230\237/Helloworld.java.txt" "b/\345\220\264\346\230\237/Helloworld.java.txt" new file mode 100644 index 0000000000000000000000000000000000000000..856381d0f4a6c3ba8c1ff39ab674796232e6529b --- /dev/null +++ "b/\345\220\264\346\230\237/Helloworld.java.txt" @@ -0,0 +1,10 @@ +package testJava; + +public class HelloWorld { + public static void main(String[] args) { + System.out.println("HelloWorld!"); + System.out.println("Welcome to Hopeful"); + System.out.println("My" +" name" +" Сˣ"); + } + +} \ No newline at end of file diff --git "a/\345\220\264\346\230\237/\345\255\246\347\224\237\344\277\241\346\201\257.java.txt" "b/\345\220\264\346\230\237/\345\255\246\347\224\237\344\277\241\346\201\257.java.txt" new file mode 100644 index 0000000000000000000000000000000000000000..8f10a609298b74b395f9bfb78e0c779d1ac8f195 --- /dev/null +++ "b/\345\220\264\346\230\237/\345\255\246\347\224\237\344\277\241\346\201\257.java.txt" @@ -0,0 +1,36 @@ +package calculator; + +import java.util.Scanner; + +public class 学生信息 { + + public static void main(String[] args) { + // TODO Auto-generated method stub + /*人物角色名(roleName)、生命值(health)、 攻击力(damage) + *防御力(defense)、武器加成(weaponScaling)、是否是热门英雄(isHot) + */ + Scanner scanner= new Scanner(System.in); + String Name; + long health; + int age; + char sex = 0; + byte xuehao; + int chengji; + System.out.println("请输入姓名"); + Name =scanner.next(); + System.out.println("请输入年龄"); + age =scanner.nextInt(); + System.out.println("请输入性别"); + sex =scanner.next().charAt(sex); + System.out.println("请输入学号"); + xuehao =scanner.nextByte(); + System.out.println("请输入HTML成绩"); + chengji =scanner.nextInt(); + System.out.println("你的姓名是:"+Name); + System.out.println("你的年龄是:"+age); + System.out.println("你的性别是:"+sex); + System.out.println("你的学号是:"+xuehao); + System.out.println("你的HTML成绩是:"+chengji); + } + +} \ No newline at end of file diff --git "a/\345\220\264\346\230\237/\345\256\242\346\210\267\344\277\241\346\201\257.java.txt" "b/\345\220\264\346\230\237/\345\256\242\346\210\267\344\277\241\346\201\257.java.txt" new file mode 100644 index 0000000000000000000000000000000000000000..25adb43a49894d3fe663acfcdb3911e36e6c4c6a --- /dev/null +++ "b/\345\220\264\346\230\237/\345\256\242\346\210\267\344\277\241\346\201\257.java.txt" @@ -0,0 +1,21 @@ +package md.rj1.lesson; + +import javax.jws.soap.SOAPBinding.Style; + +import org.omg.CORBA.PUBLIC_MEMBER; + +public class 客户信息 { + + public static void main(String[] args) { + // TODO 自动生成的方法存根 + System.out.println("书店管理销售系统》客户信息系统"); + System.out.println("\n"); + System.out.println("**********************************"); + System.out.println(" 1.显示所有客户信息"); + System.out.println(" 2.添加客户信息"); + System.out.println(" 3.修改所有客户信息"); + System.out.println("**********************************"); + System.out.println("请选择,输入数字或按"+"n"+"返回上一级菜单"); + } + +} \ No newline at end of file diff --git "a/\345\220\264\346\230\237/\350\213\261\351\233\204\350\247\222\350\211\262.java.txt" "b/\345\220\264\346\230\237/\350\213\261\351\233\204\350\247\222\350\211\262.java.txt" new file mode 100644 index 0000000000000000000000000000000000000000..75715696a2dfd43a20eb40dcdec835c1ced76174 --- /dev/null +++ "b/\345\220\264\346\230\237/\350\213\261\351\233\204\350\247\222\350\211\262.java.txt" @@ -0,0 +1,42 @@ +package calculator; + +import java.util.Scanner; + +public class 英雄角色 { + + public static void main(String[] args) { + // TODO Auto-generated method stub + /*人物角色名(roleName)、生命值(health)、 攻击力(damage) + *防御力(defense)、武器加成(weaponScaling)、是否是热门英雄(isHot) + */ + Scanner scanner= new Scanner(System.in); + String roleName; + long health; + int damage; + int defense; + float weaponScaling; + boolean isHot; + + System.out.println("请输入人物角色名"); + roleName =scanner.next(); + System.out.println("请输入人物生命值"); + health =scanner.nextLong(); + System.out.println("请输入人物攻击力"); + damage =scanner.nextInt(); + System.out.println("请输入人物防御力"); + defense =scanner.nextInt(); + System.out.println("请输入人物武器加成"); + weaponScaling =scanner.nextFloat(); + System.out.println("请输入是否热门"); + isHot =scanner.hasNextBoolean(); + + System.out.println("你的角色信息如下:"); + System.out.println("你的名字是"+roleName); + System.out.println("你的生命值是"+health); + System.out.println("你的攻击力是"+damage); + System.out.println("你的防御力是"+defense); + System.out.println("你的人物武器加成是"+weaponScaling); + System.out.println("是否热门"+isHot); + } + +} \ No newline at end of file