diff --git a/src/xs_ibdpcompsci_javaintro/hello.java b/src/xs_ibdpcompsci_javaintro/hello.java new file mode 100644 index 0000000..3b6bcb1 --- /dev/null +++ b/src/xs_ibdpcompsci_javaintro/hello.java @@ -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); + } +}