I understand the basics pretty good. Do you have a video on how do you validate a user input inside the class? for example having the user input the age.
I know you would have to use a setter method ( ex. setAge) but what would be the logic inside it to validate the age. in case they enter negative number.
That's true, and it's OK as an introduction, but it doesn't go into much detail. Generics, nested classes, reflection, threads, exception handling etc are either not covered or covered in too little detail - these are not optional, modern commercial code makes extensive use of these. Also it uses the ACM libraries which are designed for teaching, not for commercial use. Overall it's OK but it leaves out a lot of skills you need in the real world.
This has been flagged as spam show
Hello sir,
I understand the basics pretty good. Do you have a video on how do you validate a user input inside the class? for example having the user input the age.
I know you would have to use a setter method ( ex. setAge) but what would be the logic inside it to validate the age. in case they enter negative number.
therock343 3 months ago
Awesome
tmos222 1 year ago
Try Sanford Uni tuts there much more easier to follow.
lazarus554 2 years ago
That's true, and it's OK as an introduction, but it doesn't go into much detail. Generics, nested classes, reflection, threads, exception handling etc are either not covered or covered in too little detail - these are not optional, modern commercial code makes extensive use of these. Also it uses the ACM libraries which are designed for teaching, not for commercial use. Overall it's OK but it leaves out a lot of skills you need in the real world.
Zantorc 2 years ago
i got 11 errors when i tryed to compile that lol..
dontdodrugs666 2 years ago
@dontdodrugs666 There are no errors, you doing something wrong.
Zantorc 2 years ago
Thank you!!i've struggled with this now i see the light :)
harokonnen 2 years ago
thank you so much for making this. very well explained!
jafarhh 2 years ago