Skip to content
Sign upLog in
Profile icon

Nana Ohene-Nyarko

@NanaOhene_Nyark
Repls
Community
NanaOhene_Nyark
NanaOhene_Nyark
shared a Post
4 years ago
2
need help with a parsing error
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 c
scientific calculator
java
Geocube101
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
NanaOhene_Nyark
NanaOhene_Nyark
shared a Post
4 years ago
1
The code is trying to calculate grade averages but I get an error in my method
SaltyRapidFunctions
java
SaweraRehman
SaweraRehman
(year + month + day = variables) it says this line has an error can you please tell me how to?6 months ago
abc3354
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
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
NanaOhene_Nyark
NanaOhene_Nyark
shared a Post
4 years ago
1
The program should ask the user to enter their first name and their last name, separated by a space.
unit 3 lab02
java
gantr833
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
NanaOhene_Nyark
NanaOhene_Nyark
shared a Post
4 years ago
1
I need code corrections, I'm trying to get the code to calculate from Fahrenheit to Celsius
Fahrenheit to celcius
java
Geocube101
Geocube101
Line 22, 23, and 24 has unbalanced parenthesis.4 years ago
NanaOhene_Nyark
NanaOhene_Nyark
shared a Post
4 years ago
1
I'm trying to get this code to calculate grade averages but I get a lot of errors, please help
VivaciousScratchyStrategy
java
NanaOhene_Nyark
NanaOhene_Nyark
shared a Post
4 years ago
7
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, if
Lab 2 averages
java
Reallychel
Reallychel
For the first code it work and for the Second slide it doesn't.2 years ago
Bochi4Echt
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 next3 years ago
BotsBoots
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