Help with calculator // main method


#1

So i’v copied the main method from previous tasks which is | public static void main(String[] args) {} | and it’s giving me five errors.

Calculator.java:48: error: illegal start of expression
public static void main(String[] args) {
^
Calculator.java:48: error: illegal start of expression
public static void main(String[] args) {
^
Calculator.java:48: error: ‘;’ expected
public static void main(String[] args) {
^
Calculator.java:48: error: ‘.class’ expected
public static void main(String[] args) {
^
Calculator.java:48: error: ‘;’ expected
public static void main(String[] args) {
^
5 errors

Here is a picture of my code. https://gyazo.com/f8fb700c4a895505bb9efe61e69474af (If links aren’t allowed on this forum I’m sorry and will delete the screenshot and upload it next time.)

If anyone has any possible answers please respond, Thanks.


#2

Resolved, I had the main method inside the class Calculator without realizing, Not sure how to delete thread so if a moderator could lock it / delete it.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.