Exercises to improve my Java programming skills

Java

Java Problem Overview


I have learned basics of Java but want to practice more. I was looking via Google and couldn't find many beginner level problems that I can solve using Java.

Any suggestions?

Java Solutions


Solution 1 - Java

I recommend reading through the Sun's tutorials for code examples and practice in all areas of Java programming, especially the areas you wish to improve in.

Depending on how much of beginner examples you were looking for, check out CodingBat for some good beginner exercises. Project Euler is another good site, but depending on your skill level now, this may be too much, but it's worth trying anyways.

Most importantly, Its also worth noting that personal projects are a great way to start to learn a new language. I would also recommend starting a project that is benefical to you and get cracking right away, no time is better than the present!

Solution 2 - Java

When learning a new language, there are some nice problem sets you can use to learn the language better.

  • Project Euler has some nice problems with a strong mathematical twist.
  • Practice on Google Code Jam past problems, stick to the qualification rounds for the easier problems

Solution 3 - Java

I highly recommend reading the book 'Effective Java' from Joshua Bloch.

Solution 4 - Java

You could try the problems at RosettaCode, many of which lack Java solutions at the moment. The problems are of many different difficulties, but each has a solution already in another language which should help with the algorithmic side.

Solution 5 - Java

If you wanted to learn some GUI, may be tic tac toe is good. Even for console, I still find that is a fun problem. Not challenging but a little bit fun. Later you can advance some other games or port that game to GUI, client server or java applet for the web. I think if you want to learn something and get fun as well, game is a good choice:)

Solution 6 - Java

Go and buy the book titled "Java examples in a nutshell". In the book you will find most of practical examples.

Solution 7 - Java

My recommendation is to solve problems that you're interested in, writing code that might be useful to you.

Java is a huge box. It's got a lot of computer science inside: graphics, scientific computing, relational databases, user interfaces for desktop and web, messaging and queuing, multi-threading, security, and more. Each area has their own "beginner problem". Which one do you mean?

How do you define "beginner problem"? Maybe you're having trouble because you aren't narrowing your search enough.

If your imagination is lacking, your best bet is to Google something like "java beginner practice problems" and investigate what you get back.

Or start with Sun's on-line Java tutorial and work you way all the way through it. You'll know a fair amount about Java when you're done.

Solution 8 - Java

Once you are quite good in Java SE (lets say you are able to pass SCJP), I'd suggest you get junior Java programmer job and improve yourself on real world problems

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionJay MayuView Question on Stackoverflow
Solution 1 - JavaAnthony ForloneyView Answer on Stackoverflow
Solution 2 - JavaYuval AdamView Answer on Stackoverflow
Solution 3 - JavaMrSmith42View Answer on Stackoverflow
Solution 4 - JavaDonal FellowsView Answer on Stackoverflow
Solution 5 - JavavodkhangView Answer on Stackoverflow
Solution 6 - JavaHZhangView Answer on Stackoverflow
Solution 7 - JavaduffymoView Answer on Stackoverflow
Solution 8 - JavaXortyView Answer on Stackoverflow