Search:

Type: Posts; User: Nuggets

Search: Search took 0.09 seconds.

  1. Replies
    11
    Views
    1,631

    Re: What's Wrong With My Code?

    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...
  2. Replies
    11
    Views
    1,631

    Re: What's Wrong With My Code?

    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"...
  3. Replies
    11
    Views
    1,631

    Re: What's Wrong With My Code?

    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...
  4. Replies
    11
    Views
    1,631

    Re: What's Wrong With My Code?

    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...
  5. Replies
    11
    Views
    1,631

    Re: What's Wrong With My Code?

    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.
  6. Replies
    11
    Views
    1,631

    What's Wrong With My Code?

    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...
Results 1 to 6 of 6