Search:

Type: Posts; User: Kez

Search: Search took 0.09 seconds.

  1. Thread: if statement help

    by Kez
    Replies
    5
    Views
    851

    Re: if statement help

    Still slightly confused.

    What I was is say if the result was say 2, I want the number below 2 to be shown as well, so I'd want the 2 and 1 results to both be displayed
  2. Thread: if statement help

    by Kez
    Replies
    5
    Views
    851

    Re: if statement help

    Instant fix, thank you!

    Further question though, if I was to carry on with the code with the song, say the outcome is 4 which will add a next line, is it possible to display 4 and 3 together...
  3. Thread: if statement help

    by Kez
    Replies
    5
    Views
    851

    if statement help

    public class christmas {
    public static char songNumber (int songResult){
    char song;
    if (songResult = 1){
    song = 'A Partridge in a Pear Tree'; **this is the line with the error, it says...
Results 1 to 3 of 3