写了好久啊,我好菜啊
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
String number = scanner.nextLine();
scanner.close();
callNumber(number);
}
private static void callNumber(String text){
String result;
if(text.length() <= 4){
result = lowerThan10000(text, true);
} else if(text.length() <= 8){
String n1 = text.substring(text.length() - 4, text.length());
String n2 = text.substring(0, text.length() - 4);
result = lowerThan10000(n2, true) + "wan ";
result += lowerThan10000(n1, false);
} else {
String n1 = text.substring(text.length() - 4, text.length());
String n2 = text.substring(text.length() - 8, text.length() - 4);
String n3 =