0
I need help with this code
Package demoproject; Public class myclass{ public static void main(String[]args) { System.out.println("Someone solve this code errors for me please"); // Am just a beginner at the java course please help!!! string name =(" David"); String location =(" Ghana"); int age = (23); Double height = (153.45); char grade = (A); System.out.println( "name", "location" ); System.out.println( "age", "height", "grade"); } }
3 Answers
+ 1
//package demoproject;
public class myclass {
public static void main(String[]args)
{
System.out.println("Someone solve this code errors for me please");
// Am just a beginner at the java course please help!!!
String name =" David";
String location =" Ghana";
int age = 23;
double height = 153.45;
char grade = 'A';
System.out.println( "name: " + name);
/*System.out.println( name );
System.out.println( location );
System.out.println( "age", "height", "grade");
System.out.println( age );
System.out.println( height );
System.out.println( grade );*/
}
}
+ 1
It is not Sololearn Playground.
What system do use?
https://code.sololearn.com/cpf4y6v4M871/?ref=app
0
the system says public type myclass should be defined in its own file.
how do i go about that