Nana Ohene-Nyarko
@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 cjava
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 Here4 years ago
The code is trying to calculate grade averages but I get an error in my methodjava
SaweraRehman (year + month + day = variables) it says this line has an error
can you please tell me how to?1 year ago
abc3354 Elias said it.
But take care, your first if statement (line 37) do not do anything.
You need to remove the semcolon ";" and maybe to use braces.
4 years ago
pyelias On repl.it your class has to be named Main. (you could also move it to another file named Lab03.java)4 years ago
The program should ask the user to enter their first name and their last name, separated by a space.java
gantr833 One error is the extra ); If you delete that, you can fix one error. Can't figure out the other error.4 years ago
I need code corrections, I'm trying to get the code to calculate from Fahrenheit to Celsiusjava
I'm trying to get this code to calculate grade averages but I get a lot of errors, please helpjava
This program is meant to calculate the average of 3 numbers but i keep receiving errors that i don't know how to fix. the Language i used is java, ifjava
Bochi4Echt I really do not know what is happening with my computer cause I always getting notifications like
Failed to connect, retrying
but my net is full can you tell me what to do next4 years ago
BotsBoots You need to import a library that enables input in your program to make the Scanner class work. You first line should be:
import java.util.*;
In repl.it, you can name your project, but unfortunately, you cannot rename the file you are writing in. The file you are using in repl.it will always be Main.java. Your public class header should be:
public class Main
(The .java extension should not be used in that line.)
I recommend using variables to print your sum and average to make your code easier4 years ago