Computers |
|
| | #1 (permalink) |
| Newb Techie Join Date: Aug 2005
Posts: 16
| Hi all, I have learnt how to make basic programs but don't have very many ideas if anyone has some ideasor advise they could give I would be greatfull. P.S I am programing in Java Thanks |
| | |
| | #2 (permalink) |
| Monster Techie | Do something with recursion, like a program that computes factorials. Or if you want something a little harder, do something like Knight's Tour. Or program some common searching or sorting algorithms.
__________________ www.upstark.com |
| | |
| | #3 (permalink) |
| Ultra Techie Join Date: Oct 2003
Posts: 544
| "hello world" ...or if you are up for something more challenging play around with some datastructures. try writing some hashtables or something - at the end of the day most programs rely on a datastructure of some sort. Have you played around with swing yet, that may take a bit of learning. before you do anything in java though make sure you have classes sussed, else you are not coding well. |
| | |
| | #5 (permalink) |
| Ultra Techie Join Date: Oct 2003
Posts: 544
| your console is an application, in windows it is cmd.exe, under linux it would just be another shell, so you could use the same method to run other programs if you like... dont have any code so this is from memory and will probably need googling to correct: create a Process object get hold of the runtime object associated with the current java application. call the exec method of the runtime object passing the application name as an argument. e.g. Code: Process Page Ranking = Runtime.getRuntime().exec("cmd.exe") good luck |
| | |