public class Solution {
public static void main(String[] args) {
Person Person=new Person();
}
public static class Person {
String name;
int age;
int weight;
int money;
}
}
I'm getting this error. Can you please help? In the main method, create a Person object and immediately assign a reference to it to the variable person.
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Robert
8 July 2019, 19:06
try changing:
Person Person=new Person();
to:
Person person=new Person();
0