Skip to content
Sign upLog in
← Back to Community

need help with a parsing error

Profile icon
NanaOhene_Nyark

I'm trying to correct a parsing error but when I try and correct it I only get more errors. The purpose of this code is to function as a scientific calculator

Voters
Profile icon
CorbinMallo
Profile icon
NanaOhene_Nyark
Comments
hotnewtop
Profile icon
Geocube101

Error 1: Unbalance Curly Brackets: }; Fix by adding } to line 134

}

Error 2: Incorrect Class Name: Lab04; Fix by changing to Main on line 1

public class Main {

Error 3: Public; Fix by removing public from class at line 1

class Main {

Error 4: Undefined Name: Scanner; Fix by importing java.util.Scanner; before code

import java.util.Scanner; class Main {

New Code Here