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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!