Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

My if else statement is working, but its giving me an error message, any help?? thanks JAVA GolfScores.java X new 1 txt new 1 x

My if else statement is working, but its giving me an error message, any help?? thanks

JAVA

image text in transcribedimage text in transcribed

GolfScores.java X new 1 txt new 1 x x import java.util.Scanner; blfScore, that returns the public class GolfScores { CS. Administrator: Command Prompt int par: int strokes; public GolfScores (int par, int strokes) { C:\Users \codecj>javac GolfScores.java GolfScores.java:25: error: illegal start of expression public static void main(String[] args) { 1 error C:\Users\ \codecj> 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 if (strokes == 1) { System.out.println("Par"); } else if (strokes

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions

Question

LO22.5 List the main elements of existing federal farm policy.

Answered: 1 week ago

Question

What is the principle of thermodynamics? Explain with examples

Answered: 1 week ago