我怎样才能让它变得更短,更好?我怎样才能让它变得更短,更好?
import java.util.Scanner;
public class letter {
public static void main(String args[]){
Scanner input = new Scanner(System.in);
String 1 , 2 ,3 ,4 ,5 ,6 ,7 and so forth;
System.out.print("Enter the number: \t");
1 = input.nextInt();
2 = input.nextInt();
3 = input.nextInt();
...and so forth.
if (1 == A){System.out.println("Your name is anything");}
___'Java!= JavaScript' ___ – Rayon
你怎么解释它?对不起,我只是一个新手 – Hysteria
使用数组和循环。谷歌是你的朋友。 –