Search:

Type: Posts; User: Kez

Search: Search took 0.36 seconds.

  1. Thread: Syntax error

    by Kez
    Replies
    1
    Views
    109

    Syntax error

    import
    java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import javax.swing.JButton;

    public class CalculatorEngine
    implements ActionListener {

    Calculator...
  2. Thread: if statement help

    by Kez
    Replies
    5
    Views
    123

    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
  3. Thread: if statement help

    by Kez
    Replies
    5
    Views
    123

    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...
  4. Thread: if statement help

    by Kez
    Replies
    5
    Views
    123

    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 4 of 4