import javax.swing.*; public class while { /** Code documentation here */ public static void main(String[] args) { int target= 0; int zero, one, two, three, four, five, six, seven, eight, nine, ten; int most = 0; int heads = 0; String error = "That is not a valid number."; String input = OptionPane.showInputDialog ("How many times would you like to flip a coin?":wink:; try { target = Integer.parseInt(input); }//try catch (Exception e) { JOptionPane.showMessageDialog(null, error, "Unexpected exception", JOptionPane.INFORMATION_MESSAGE)
So I had to put together bits and components to make a program but I think it's full of errors
So owlbucks to anyone who can get it to work
Ye
@e.mccormick may help.
@ganeshie8
ye
Ask it in the proper section.
Join our real-time social learning platform and learn together with your friends!