package com.codegym.task.task02.task0202;
/*
Where does a Person come from?
*/
public class Solution {
public static void main(String[] args) {
Person p1 = new Person();
}
public static class Person {
String name;
int weight, age, money;
}
}
what is my problem here ?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Roman
23 August 2018, 06:31
In the main method, create a Person object and store a reference to it in the variable person.
A name of the variable should be person.
0