Question: Why is it saying I am referencing a variable that is null? I did import javax.swing.JOptionPane; so I don't know what is wrong. Run Code
Why is it saying I am referencing a variable that is null? I did import javax.swing.JOptionPane; so I don't know what is wrong.

Run Code I STOP public void startGame) { System.out.println("Welcome!"); JOptionPane jp new JOptionPane(); Object[] starting = {50, 100, 250, 500, 1000}; Object smoney = (JOptionPane.showInputDialog(null, "How much money do you have?", "Select a starting money", JOptionPane. QUESTION_MESSAGE, null, starting, starting[0])); String stringsMoney = smoney.toString(); double bankroll = Double.parseDouble(stringsMoney); /*System.out.println("What is your starting money? "); double bankroll = sc.nextDouble();*/ while(bankroll(SunFontManager.ja at sun.awt. FcFontManager.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
