diff --git "a/\351\202\271\346\265\267\345\205\265/java/juese/.classpath" "b/\351\202\271\346\265\267\345\205\265/java/juese/.classpath" new file mode 100644 index 0000000000000000000000000000000000000000..51a8bbad89682d379e0aadb7bd54d22de601a62f --- /dev/null +++ "b/\351\202\271\346\265\267\345\205\265/java/juese/.classpath" @@ -0,0 +1,6 @@ + + + + + + diff --git "a/\351\202\271\346\265\267\345\205\265/java/juese/.project" "b/\351\202\271\346\265\267\345\205\265/java/juese/.project" new file mode 100644 index 0000000000000000000000000000000000000000..61ecc3809053e042365619a3c35151de03f5abef --- /dev/null +++ "b/\351\202\271\346\265\267\345\205\265/java/juese/.project" @@ -0,0 +1,17 @@ + + + juese + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git "a/\351\202\271\346\265\267\345\205\265/java/juese/.settings/org.eclipse.jdt.core.prefs" "b/\351\202\271\346\265\267\345\205\265/java/juese/.settings/org.eclipse.jdt.core.prefs" new file mode 100644 index 0000000000000000000000000000000000000000..3a21537071bf4118b9e1ee864cb4bc258aa48211 --- /dev/null +++ "b/\351\202\271\346\265\267\345\205\265/java/juese/.settings/org.eclipse.jdt.core.prefs" @@ -0,0 +1,11 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.8 diff --git "a/\351\202\271\346\265\267\345\205\265/java/juese/bin/juese/lianxi.class" "b/\351\202\271\346\265\267\345\205\265/java/juese/bin/juese/lianxi.class" new file mode 100644 index 0000000000000000000000000000000000000000..ce0a53e07203fdf36c45b11ac04d1a42993ba5c6 Binary files /dev/null and "b/\351\202\271\346\265\267\345\205\265/java/juese/bin/juese/lianxi.class" differ diff --git "a/\351\202\271\346\265\267\345\205\265/java/juese/src/juese/lianxi.java" "b/\351\202\271\346\265\267\345\205\265/java/juese/src/juese/lianxi.java" new file mode 100644 index 0000000000000000000000000000000000000000..1104c1078966016652da732a047d9a7f1ac1de92 --- /dev/null +++ "b/\351\202\271\346\265\267\345\205\265/java/juese/src/juese/lianxi.java" @@ -0,0 +1,41 @@ +package juese; + +import java.util.Scanner; + +public class lianxi { + + public static void main(String[] args) { + // TODO Auto-generated method stub + /*编写程序,定义变量,分别存放游戏中某个英雄的属性信息, + 包括:人物角色名(roleName)、生命值(health)、攻击力(damage)、 + 防御力(defense)、武器加成(weaponScaling)、是否是热门英雄(isHot)。 + 打印出来。*/ + String roleName; + int health; + int damage; + int defense; + double weaponScaling; + boolean isHot; + Scanner scanner=new Scanner(System.in); + System.out.println("请输入你的角色名"); + roleName=scanner.next(); + System.out.println("请输入你的生命值"); + health=scanner.nextInt(); + System.out.println("请输入你的攻击力"); + damage=scanner.nextInt(); + System.out.println("请输入你的防御力"); + defense=scanner.nextInt(); + System.out.println("请输入你的武器加成"); + weaponScaling=scanner.nextDouble(); + System.out.println("请输入是否是热门英雄"); + isHot=scanner.nextBoolean(); + 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); + } + +} diff --git "a/\351\202\271\346\265\267\345\205\265/java/lession.txt" "b/\351\202\271\346\265\267\345\205\265/java/lession.txt" new file mode 100644 index 0000000000000000000000000000000000000000..4fb3b356c4deed5dc79082b2066697924ee486a0 --- /dev/null +++ "b/\351\202\271\346\265\267\345\205\265/java/lession.txt" @@ -0,0 +1,30 @@ +import java.util.Scanner; + +public class jh { + + public static void main(String[] args) { + // TODO Auto-generated method stub + String name; + int ages; + String sex; + String xuehao; + Double chengji; + Scanner scanner=new Scanner(System.in); + System.out.println("请输入你的名字:"); + name=scanner.next(); + System.out.println("请输入你的年龄:"); + ages=scanner.nextInt(); + System.out.println("请输入你的性别:"); + sex=scanner.next(); + System.out.println("请输入你的学号:"); + xuehao=scanner.next(); + System.out.println("请输入你的HTML的成绩:"); + chrngji=scanner.nextDouble(); + System.out.println("你的名字是"+name); + System.out.println("你的年龄是"+ages+"岁"); + System.out.println("你的年龄是:"); + System.out.println("你的学号是:"); + System.out.println("你HTML成绩是:"); + } + +}