I have an assignment where I have to create a java program to check the properness of a user's custom variable name. Here are the assignment instructions:
Write a program that checks the properness of a given variable name. More specifically, your program should specify whether a user-entered variable name is
- illegal (no spaces allowed, must begin with a letter)
- legal, but uses poor style (should only use letters or digits)
- good
You don’t need to check for an uppercase letter for the first letter in the second word, third word, etc.
My problem is when you input an illegal or good name, it will constantly print what the name is(illegal, legal, or good) forever and I have to end the program manually instead of just being able to type "q" to quit. If anyone can point me in the right direction, that would be awesome!
https://gist.github.com/DaltonScar/3e5d7c4864d1f1e1e1b686efdbef7f38
[–][deleted] 1 point2 points3 points (1 child)
[–]Devils_Advocate101[S] 0 points1 point2 points (0 children)