diff --git "a/\347\206\212\344\273\201\345\274\272/java\343\200\202\345\220\215\345\255\227/HelloWorld.java" "b/\347\206\212\344\273\201\345\274\272/java\343\200\202\345\220\215\345\255\227/HelloWorld.java" new file mode 100644 index 0000000000000000000000000000000000000000..6bd78b096f08df0c8ec7187886ae348348fd0081 --- /dev/null +++ "b/\347\206\212\344\273\201\345\274\272/java\343\200\202\345\220\215\345\255\227/HelloWorld.java" @@ -0,0 +1,41 @@ +package fgtfg; + +import java.util.Scanner; + +public class HelloWorld { + + public static void main(String[] args) { + String roleName; + long health; + int damage; + int efense; + float weaponScaling; + double isHot; + + Scanner scanner = new Scanner(System.in); + System.out.print("请输入英雄人物名是: "); + roleName=scanner.next(); + System.out.print("请输入英雄生命值是: "); + health=scanner.nextInt(); + System.out.print("请输入英雄攻击力是: "); + damage=scanner.nextInt(); + System.out.print("请输入英雄防御力是: "); + efense=scanner.nextInt(); + System.out.print("请输入英雄武器加成是: "); + weaponScaling =scanner.nextInt(); + System.out.print("请输入英雄是否热门英雄: "); + isHot =scanner.nextInt(); + + + System.out.println("英雄人物名是: +roleName"); + System.out.println("英雄生命值是: +health"); + System.out.println("英雄攻击力是: +damage"); + System.out.println("英雄防御力是: +efense"); + System.out.println("英雄武器加成是: +weaponScaling"); + System.out.println("英雄是否热门英雄:" +isHot); + + + + } + +}