Search:

Type: Posts; User: Rstuart970

Search: Search took 0.18 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...
Results 1 to 8 of 8