added test code

This commit is contained in:
buzz-lightsnack-2007 2024-01-16 12:21:42 +08:00
parent 2bc53c5352
commit 6f16f730b2

View file

@ -0,0 +1,30 @@
package xs_ibdpcompsci_javaintro;
import java.util.*;
public class hello {
static String request_input() {
// import the input
Scanner input = new Scanner(System.in);
// Create the variable.
String USER_INPUT;
USER_INPUT = input.nextLine();
System.out.println(USER_INPUT);
input.close();
return USER_INPUT;
};
static void analyze(String TEXT_SOURCE) {
System.out.println(TEXT_SOURCE.length());
}
public static void main() {
//String
String TEXT_TOANALYZE;
TEXT_TOANALYZE = request_input();
analyze(TEXT_TOANALYZE);
}
}