package com.codegym.task.task02.task0202;
/*
Where does a Person come from?
*/
public class Solution {
public static void main(String[] args) {
//write your code here
Person person = new Person();;
person.name = "Rishabh";
person.age = 22;
person.weight = 53;
person.money = 1000;
}
public static class Person {
//write your code here
String name;
int age, weight, money;
}
}
I got an error in this solution. Is something wrong here?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Misiu
20 November 2020, 13:11
Two semicolons:
Person person = new Person();;
+1