The Java code generators extension is really useful.
Inside Vrsaljko Code installed the Java Code generators extension.
Now remove everything except the constructor's.
Right, click on Java Code generators.
And generate the getters and setters.
Generate tax code and equals.
And generate a tutoring method.
And then it pretty much does the same thing we usually do.
Now I personally consider this syntax a bad habit.
Java allows you to not use brackets if the block of code that follows is only a single line.
I purposely never taught you the syntax because I don't like it.
It's good to always put brackets to clearly define scope anyways.
Whatever.
We'll just leave it because it was generated like that.
I just recommend not getting in the habit of doing it yourself.
And here it's also using an object class to compare the two strings and return a boolean.
I find this a bit weird.
Like I personally would just do name dot equals person, not name.
But you know what?
I'm not too strict about it.
That's what got generated.
So we'll just leave it.
It does work.
And now, by the way, the object class is not the same as the object class objects is just a utility
class with a bunch of static methods.
The object class is the ancestor of every class.
So it's really important you don't confuse them.
And now the household method looks identical to how we do it.
And two string just returns a string, very cool.