Search:

Type: Posts; User: Rstuart970

Search: Search took 0.22 seconds.

  1. Re: Problem getting code to print string after numbersn that qualkify for it. WHATS W

    trying to get them to print on the same line as the numbers though instead of before the corresponding number, for example

    right now its printing

    1
    HiTwo
    2
    HiThreeOrSeven
    3
    HiTwo
  2. Re: Problem getting code to print string after numbersn that qualkify for it. WHATS W

    I got it worked out for the 1-50
  3. Re: Problem getting code to print string after numbersn that qualkify for it. WHATS W

    Ok I have it working good now except for the fact my numbers start at 2 and end at 51, instead of 1 - 50,

    my code now looks like:




    public class QuestionFive {
    public static void...
  4. Re: Problem getting code to print string after numbersn that qualkify for it. WHATS W

    is my System.out.println suppose to be out of the while brackets right below the end brackets?
  5. Re: Problem getting code to print string after numbersn that qualkify for it. WHATS W

    your right im gettin

    2
    3HiTwo
    4HiTwoHiThreeOrSeven
    5HiTwoHiThreeOrSeven
    6HiFiveHiTwoHiThreeOrSeven
    7HiFiveHiTwoHiThreeOrSeven
    8HiFiveHiTwoHiThreeOrSeven
  6. Re: Problem getting code to print string after numbersn that qualkify for it. WHATS W

    i think i am suppose to replace the numbers with the correct string maybe to instead of 51 getting HiThreeOrSeven in place of it? if I am reading that right.
  7. Re: Problem getting code to print string after numbersn that qualkify for it. WHATS W

    ok i made my changes but I am still getting it for everynumber, is something wrong with my strings?

    im gettin
    51HiFiveHiTwoHiThreeOrSeven
    50HiFiveHiTwoHiThreeOrSeven...
  8. Problem getting code to print string after numbersn that qualkify for it. WHATS WRONG

    Hello, I am suppose to write program that displays number 1-50 and then also print HiFive next to the ones that are multiples of five, HiTwo if they are divisible by two and HiThreeOrSeven if they...
  9. [SOLVED] Re: PLZ HELP! Somethng wrong with code, assignment due today! Print if multiple of...

    Yeah sorry, first time posting here. I actually got my problem worked out, assigned HiFive and Georgia to variables and then just used if statements like i did before. I am not sure how they handle...
  10. [SOLVED] PLZ HELP! Somethng wrong with code, assignment due today! Print if multiple of...

    Ok, I have spent to long trying to figure out what is keeping my code from printing both HiFive and Georgia for the right integer put in. Here is my assignment as it was given to me:

    3. (10 pts)...
Results 1 to 10 of 10