Recompile and rerun Java program
After modifying the Java code to check multiple characters, you need to recompile it using the following command:
javac ~/project/UnicodeIdentifierStart.java
This command will recompile the modified UnicodeIdentifierStart.java
file and generate a new bytecode file named UnicodeIdentifierStart.class
in the same directory.
After recompiling the Java code, you need to rerun the program using the following command:
java UnicodeIdentifierStart
This command will run the newly compiled UnicodeIdentifierStart.class
file and display the following message:
Enter characters:
Once you enter the characters, the program checks whether each character is allowed as the first character of a Unicode identifier or not, and displays the result accordingly.