File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Real life projects in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Real life projects in java" Watch "Real life projects in java" New topic

Real life projects in java

Rubbal Bhusri
Ranch Hand

Joined: Dec 30, 2010
Posts: 71
I read individual topics of java many a times, like I read 2 books on java, but never tried on real life project, and also don't have any idea, how to get started .
Anyone please help me to get started on small small real life projects, so that I may get idea, how this language works when put together.
fred rosenberger
lowercase baba

Joined: Oct 02, 2003
Posts: 11957

what do you mean by 'real life'? you could write a calculator, a checkers game, a phone book application...

The trick is to find something that sounds interesting TO YOU, and then write the code to do that. If someone says 'write code to control a factory robot' and that doesn't interest you, you are less likely to complete it (unless they are paying you).

Think of something that you think would be useful, and code that.

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Jeff Verdegan

Joined: Jan 03, 2004
Posts: 6109

I second Fred's advice. And I'll add this.

Start small, and accept that it's going to take a long time to develop the skills to build a serious app, and a long time to actually build it once you have those skils (or as you're developing those skills). (Read this to understand why.)

At the same time though, that doesn't mean that the first several years are wasted or produce nothing. If you set small, achievable milestones, ones that are just a bit beyond your current skill level, you'll enjoy the work more, feel less frustration than if you start out saying, "I'm going to write the next World of Warcraft," and you'll take satisfaction at achieving those incremental goals as you steadily increase your overall skill set.

So, taking Fred's example of a phone book app. You might proceed through something like this (and with smaller incremental goals along the way):

1. Using a simple CSV file, prompt user to either a) list numbers or b) add a number. (A) reads the file and displays the contents. (B) prompts for name and phone number, and appends to the existing file.

2. Add the ability to search, edit, and delete.

3. Put a Swing front end on it.

4. Put a web front end on it.

5. Make it available as an Android app.

6. Integrate it with Facebook.

... and so on.

Again, though, note that each of those goals has its own incremental sub-goals. For instance:
1.1. Learn how to read and parse a CSV file
1.2. Learn how to format console output into neat columns.
1.3. Learn how to handle user input.
1.4. Learn about dealing with arrays and collections.

Rubbal Bhusri
Ranch Hand

Joined: Dec 30, 2010
Posts: 71
Can you please tell me any website, which teaches everything visually , i.e. step by step process of how to develop these projects.
Rohan Deshmkh
Ranch Hand

Joined: Aug 31, 2012
Posts: 127
awesome reply jeff..
This will also help me, would you prefer to learn javafx instead of swing if you are new to both the technologies?
Rubbal Bhusri
Ranch Hand

Joined: Dec 30, 2010
Posts: 71
Which has most scope java-fx or the other one ??
Nobody gave me a link of some kind of website where i can learn step by step process to develop a web app.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15101

Rubbal: The NetBeans website has tutorials on how to build different kinds of applications with NetBeans, including tutorials for web apps.

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Rubbal Bhusri
Ranch Hand

Joined: Dec 30, 2010
Posts: 71
But net-beans tutorials are very short and doesn't show any complete example to making any project.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
There are probably books that take that approach, but if you're looking for a guide that teaches you everything in simple steps, then that probably does not exist. But any introductory book should teach you everything you need to know to get going.
I agree. Here's the link:
subject: Real life projects in java
It's not a secret anymore!