import
java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JButton;
public class CalculatorEngine
implements ActionListener {
Calculator...
Type: Posts; User: Kez
import
java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JButton;
public class CalculatorEngine
implements ActionListener {
Calculator...
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
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...
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...