Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro Database Migration To Azure Data Modernization For The Enterprise

Authors: Kevin Kline, Denis McDowell, Dustin Dorsey, Matt Gordon

1st Edition

1484282299, 978-1484282298

More Books

Students also viewed these Databases questions

Question

2. How does our mindset contribute to the way we experience stress?

Answered: 1 week ago

Question

Demonstrate how to use the Gaps Model for diagnosing and

Answered: 1 week ago