Can someone advise what is the best way to get motivated to develop Java codes. I have lot of interest in Java but not getting the motivation to sit and write codes.
I would say please start reading some good articles, tutorials and even books. So that some interesting things you read will definitely insist you to execute and verify the same in the form of programs.
Let's say for example, you know about Bit shifting very well. Just start reading about some Mock Exam questions They really have some tricky questions on the well known aspects. The wrong guess and answer you make will definitely make you sit and test in the form of a program!
I know only 2 ways to keep students motivated writing code:
1. Have someone who cares
2. Write useful code.
1. If you write code and nobody notice or care, you might not keep motivated for long. That's the role of a coach/tutor. It's probably the main reason why most people don't learn efficiently by themselves: they don't keep motivated because they are alone. Try edufire.com to find an affordable teacher.
2. Write an application for somebody. It doesn't matter if it's for your mom, your neighbor or your cat. It's more motivating if somebody is waiting for it and if it's useful. The problem with Java is the UI. You probably cannot make anything useful if it has no User Interface. And in Java, the UI is not reachable to the beginner (is it the ugly/complex Swing or web).