Okay, so I rewrote my code again after my first failed attempt. What this program is supposed to do is to look for if a variable name that has been inputted is correct. If first character of variable...
Type: Posts; User: Nuggets
Okay, so I rewrote my code again after my first failed attempt. What this program is supposed to do is to look for if a variable name that has been inputted is correct. If first character of variable...
Example: Input a variable name (q to quit):
if input is Bakercake it should output "legal, but uses poor style." because of capital first letter.
if input is baker cake2 it should output "illegal"...
Still doesn't output what I want it to. Do you think it has something to do with my Do loop? Modified code:
import java.util.Scanner;
public class Assign4 {
public static void...
Still is not outputting what it's supposed to. Here is my modified code.
import java.util.Scanner;
public class Assign4 {
public static void main(String[] args) {
Scanner Input = new...
The program keeps asking for input. No errors. I will modify the program as you said and see if that helps. Thanks for responding snow.
Whatever I input, it doesn't print out anything. All it keeps saying is to "Enter a variable name (q to quit): ". I'm pretty sure my coding is correct, I'm just having trouble putting it all...