Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Fun with Java

Fun with Java

Scheduled Pinned Locked Moved The Lounge
visual-studiocsharphelpjavalearning
24 Posts 18 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Cp Coder

    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!

    H Offline
    H Offline
    Harrison Pratt
    wrote on last edited by
    #14

    The word for the day: "to keep my brain from atrofying ..." Correction: "atrofrying" Meaning: being fried and then atrophying :laugh:

    1 Reply Last reply
    0
    • C Cp Coder

      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!

      B Offline
      B Offline
      Bruce Patin
      wrote on last edited by
      #15

      You deserve to suffer for trying to work in Java! Big Grin | :-D

      C 1 Reply Last reply
      0
      • C Cp Coder

        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!

        E Offline
        E Offline
        ElectroLund
        wrote on last edited by
        #16

        Prolly time for another viewing of wat[^]

        1 Reply Last reply
        0
        • C Cp Coder

          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!

          S Offline
          S Offline
          Slow Eddie
          wrote on last edited by
          #17

          Being 71 myself, I can relate. Just learning C#, is more than enough for me. I always worked in VB, still do until I get my code converted. Yes I am still working for a living. Plan ahead! :sigh: :sigh:

          Wear a mask! help prevent Covid 19 and its' variants.

          C 1 Reply Last reply
          0
          • C Cp Coder

            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!

            S Offline
            S Offline
            Samuel Teixeira
            wrote on last edited by
            #18

            Awesome. 🤩 This grows my expectations to finally 🙏learn Java when get in these times.🤣 After all, enjoy programming is what it matters😃

            C 2 Replies Last reply
            0
            • S Samuel Teixeira

              Awesome. 🤩 This grows my expectations to finally 🙏learn Java when get in these times.🤣 After all, enjoy programming is what it matters😃

              C Offline
              C Offline
              Cp Coder
              wrote on last edited by
              #19

              Good! If you are serious about Java, I recommend you focus on JavaFX with fxml and using the IntelliJ IDE. :) To get started quickly with JavaFX and IntelliJ, I recommend the book "The Definitive Guide to Modern Java with JavaFX" by Chin et al. It's available as a Kindle from Amazon. It will teach you to configure a new project for IntelliJ, which can be a little tricky. Check the section "Setting Up Your Environment". Also the section: "Your First Modern Java Client" Good luck, and let us know how you progress! I am here to assist where I can. Always keep in mind: Java is not for sissies! :laugh:

              Get me coffee and no one gets hurt!

              1 Reply Last reply
              0
              • S Slow Eddie

                Being 71 myself, I can relate. Just learning C#, is more than enough for me. I always worked in VB, still do until I get my code converted. Yes I am still working for a living. Plan ahead! :sigh: :sigh:

                Wear a mask! help prevent Covid 19 and its' variants.

                C Offline
                C Offline
                Cp Coder
                wrote on last edited by
                #20

                Maybe the hamsters should consider a special forum for us older geezers where we can exchange ideas that the young 'uns just don't appreciate or understand! :)

                Get me coffee and no one gets hurt!

                1 Reply Last reply
                0
                • B Bruce Patin

                  You deserve to suffer for trying to work in Java! Big Grin | :-D

                  C Offline
                  C Offline
                  Cp Coder
                  wrote on last edited by
                  #21

                  Hoy! Remember: Java is NOT for sissies! :laugh:

                  Get me coffee and no one gets hurt!

                  1 Reply Last reply
                  0
                  • S Samuel Teixeira

                    Awesome. 🤩 This grows my expectations to finally 🙏learn Java when get in these times.🤣 After all, enjoy programming is what it matters😃

                    C Offline
                    C Offline
                    Cp Coder
                    wrote on last edited by
                    #22

                    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!

                    S 1 Reply Last reply
                    0
                    • C Cp Coder

                      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!

                      B Offline
                      B Offline
                      BotReject
                      wrote on last edited by
                      #23

                      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.

                      1 Reply Last reply
                      0
                      • C Cp Coder

                        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!

                        S Offline
                        S Offline
                        Samuel Teixeira
                        wrote on last edited by
                        #24

                        Sorry for my delay! Thanks for the tip! I definitely will look about it :java: :-D

                        1 Reply Last reply
                        0
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • World
                        • Users
                        • Groups