answersLogoWhite

0


Best Answer

Depends on what you want the project to teach.

What project list would be complete without the standard Hello World project? Learn the creation of classes, use of the main method, and standard output.

Projects which deal with calculating mathematical concepts are common. Factorials, GCD, LCM, area of geometric shapes, etc. Also, simple string manipulation projects, like printing out a string of a firstname-lastname pair, then switching them. Use arrays or other data structures to process many of these calculations and store the answers.

As above, except have the functions calculated by input given through the command line by the user.

Specific example: Have the user enter any number of integers as command line arguments to have their factorials calculated. If one of the inputs is not an integer, print an error message. If one of the inputs would result in a factorial that would be too large (greater than 20 for a long integer), print an error message. Otherwise print the factorial of the number.

Other points of this exercise are to validate input and (possibly) use a recursive solution for a problem.

As above, except take input via standard input.

Specific example: Have the user enter numbers (either integer or floating point). Keep track of all unique numbers entered until the user enters non-numeric data. Once done accepting input: print all numbers in order from least to greatest, print the sum/mean/median/mode of the numbers, and print how many numbers entered were integers and how many were floating point.

Other points of this exercise are to consider various types of data structures, sorting data, parsing data, and filtering data.

As above, except take input from files and direct output into files.

Specific example: Have the user specify two file names on the command line. The first will be our input file, the second will be our output file. The program should exit with an error message if: there are an incorrect number of command line arguments, both are the same file name, or either specifies a file that does not exist. Otherwise, the first file will contain a series of lines of text. Each line will have three parts, separated by a space character. Each line will contain one part containing entirely numbers, one part containing entirely lowercase letters, and one part containing entirely uppercase letters. The parts of each line will be in a different order. The program will parse each line and write them to output in the following format: "(number part,lowercase part,uppercase part)".

Other points of this exercise are to learn exception handling (must-have with file I/O), data type recognition, and output formatting.

As above, except make it look pretty.

Specific example: Have the user enter three values into a text box, then press a button. The program will interpret the three values as the length, width, and height of a cuboid (3D rectangle). The button will cause another window to pop up and display information about the cuboid: volume, surface area of each of the three distinct sides, total surface area, and distance from one corner to the opposite corner. Finally, (and most importantly?) ensure that the program exits when the user closes the window.

For extra difficulty, implement the following: Do not allow the three input boxes to record any non-numeric characters. Make the popup window block input to the original window until it is closed. Use a layout which will ensure that the input window will both allow for resizing and space out the components evenly whenever the window size changes.

Other points of this exercise are sub-concepts of GUI building: component layout, event handling, and "graceful" exits from a program.

As above, except read and write input between networked computers.

Specific example: This will require two different programs running on remote machines. Have the user enter a string in the date format: "MM/DD/YYYY". Ensure that the date is in the past. Continue asking for input until a valid date is entered. The program should then connect to a remote computer and send the date string over. At this point, the program running on the remote computer will analyze the string and determine what day of the week that date was. The remote program will then take today's date and figure out when the next day (tomorrow or later) will be that will be the same day of the week. It will send this back to the original program. The original program will print this value out and both programs will exit.

By "reflection" I mean having to do with a program knowing information about itself. Have the program read information from itself or even have it modify some of its methods and execute itself.

Specific example: Have the user input the name of a class. The program should display information about each method in the class in the format: "access_modifier return_type method_name(parameters) [throws exception_types]"

Another (harder) specific example: Have the user input any valid code, a single line at a time. When the user specifies, execute the code and display the results (if any).

If you didn't figure it out already, just take the simple calculations from the first section and incorporate them into any new concept you want to teach.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

you can visit the programmersheaven.com site,you will find some java project with source code.

This answer is:
User Avatar

User Avatar

Wiki User

10y ago

You can write just about anything in those programming languages.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are some ideas for mini projects in Java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Give idea of electronics and telecommunication mini-projects?

Mini projects that deal with fuzzy logic and programming with the latest tools such as Cadence, Matlab etc. are some common fields. Projects that involve new ideas and innovative technology will also be useful.


What are some mini shop ideas on gaia online?

You can check all around the mini shop forums for some ideas on what's popular.Here you can find a full list of ideas:http://www.gaiaonline.com/forum/mini-shops/a-new-mini-shops-list-o/t.26835231/


Is c plus plus and java are the same?

No. Java takes some ideas from C++, so there are certain similarities, especially in the basic syntax. But it is a different language.


What are some examples of projects beginning programmers can make in Java?

Beginners in Java may struggle to comprehend or visualize easy projects that can help them to expand their skills, but there are a variety of ideas found online. Many of these include setting up a Java applet to handle basic input and output for a simple web form, creating a calculator (either scientific or basic depending on skill level), or creating a simple game, such as an 'avoid the spikes' game.


Where can I get some great ideas for exercises that I can do on a mini trampoline?

You can find great ideas for mini trampoline exercises online. One great website to visit is http://www.ehow.com/how_2058170_do-minitrampoline-exercises.html.


What are some great ideas for children's tree art projects?

If you are interesting in finding some great ideas for children's tree art projects, then the best website for you to check out would be Activity Village. They have some of the best ideas!


What are some good ideas for East Projects?

nothing


What are some ideas for an EDD projects?

portable bathroom


Can you find a mini project for Electronics and Communication Engineering?

Try SeminarProjects. It has mini projects for engineering majors. You can also look at elektroniksforkids.com for some very useful projects and learning information


What are some ideas for girls' slumber party favors?

lip gloss, mini mirrors, lotion, (etc.)


Can you give me some best topics related to electrical and electronics engineering mini project?

automatic missile guidence systemi want some mini projects on electrical engineering


What are some ideas for mini projects?

Well i s'pose a mini project on ligers or and animal like a panda. These animals aernt focused on much. Or on volcanoes ww2 or ww1 are very interesting! Or maybe something sciency or a planets one? I am doing one on volcanoes and rivers and mountains x hope it helped xx