Answered step by step
Verified Expert Solution
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
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 (strokesStep 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