Fun with Java
-
You deserve to suffer for trying to work in Java! Big Grin | :-D
-
Awesome. 🤩 This grows my expectations to finally 🙏learn Java when get in these times.🤣 After all, enjoy programming is what it matters😃
If you are seriously interested in Java, I recommend the book "The Definitive Guide to Modern Java Clients with JavaFX" by Chin et al. It is available from Amazon as a Kindle download. It helped me getting IntelliJ set up and configuring my first app, which is a little tricky. Read the sections: "Setting Up Your Environment" and "Your First Modern Java Client". Good luck! :)
Get me coffee and no one gets hurt!
-
For the past 4 months or so, I have tried to keep my brain from atrofying by working on complex issues. I am approaching 80 and dementia in all forms is one of the few things that really scares me. When my daughter was struggling with a course in elementary Java, I had to quickly learn elementary Java to help her. Well, Java hooked me, and now I am well into Javafx with fxml and far, far beyond her elementary course. I found Java to be quite similar to C#, but at the same time, it had significant differences. One difference that drove me nuts several times, is the simple act to compare strings. In C# I must have have done the comparison like: if (stringA == stringB) { } thousands of times. But try to do that in Java, ooh boy! The compiler will just ignore the statement and skip to the next statement. No exception, no error, no nothing. It just ignores the line. The results can be chaotic with absolutely no indication where the error occurred! The proper syntax in Java is: if ( stringA.equals(stringB)) { } And if any of you readers tell me I deserve to suffer for trying to work in Java: I will scream! :-D One other thing: I started out using the Eclipse IDE for java, but soon found I preferred the IntelliJ IDE. In fact IntelliJ is better than Visual Studio in several respects. But VS admittedly has its moments in the sun.
Get me coffee and no one gets hurt!
Every object in Java inherits the equals method from Object, but the default implementation simply compares the object references (so to be true it must compare the same object instance with itself). It is part of the specs that every class has the equals method implementation replaced to provide the desired functionality.
-
If you are seriously interested in Java, I recommend the book "The Definitive Guide to Modern Java Clients with JavaFX" by Chin et al. It is available from Amazon as a Kindle download. It helped me getting IntelliJ set up and configuring my first app, which is a little tricky. Read the sections: "Setting Up Your Environment" and "Your First Modern Java Client". Good luck! :)
Get me coffee and no one gets hurt!
Sorry for my delay! Thanks for the tip! I definitely will look about it :java: :-D