Question
I have another coding issue, using a try catch block but still getting errors and always get error: try without catch the brackets appear to
I have another coding issue, using a try catch block but still getting errors and always get error: try without catch the brackets appear to be in place but still gettings errors.
public class HiLo extends javax.swing.JFrame { int guess = (int)(Math.random()* 101); int jnumber = (guess);
/** * Creates new form HiLo * @param args */ //@SuppressWarnings("empty-statement") public static void main (String[] args){ System.out.println("Pick a number"); try { System.out.println(Math.random()* 101); } (guess =>jnumber); catch { System.out.println("Too High, try again"); } (guess <= jnumber); catch { System.out.println("Too Low, try again"); } finally (guess == True); { System.out.println("You got it, play again??"); } }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started