Results 1 to 6 of 6
Thread: Need Help!
- 04-29-2008, 02:17 PM #1
Member
- Join Date
- Apr 2008
- Posts
- 2
- Rep Power
- 0
- 04-29-2008, 02:27 PM #2
Hello Milet, welcome to the Java Forums.
Have you actually attempted to do this yourself yet? The best way to learn is to do it!!
What you want to do is really quite simple and is the very basics of Java.
See what you can come up with and post back here and we can help you to correct any mistakes.
Also, please note, a more descriptive title in encouraged in these forums.Last edited by DonCash; 04-29-2008 at 03:31 PM.
Did this post help you? Please
me! :cool:
- 04-29-2008, 08:54 PM #3
Member
- Join Date
- Apr 2008
- Posts
- 2
- Rep Power
- 0
Well when i say im new to java i mean very new so I am just looking for a example with all these with maybe a few notes in it to explain because I'm just trying to learn a few small things at the moment
- 04-29-2008, 09:20 PM #4
try my website it will teach correct Java programming techinques My Website
My IP address is 127.0.0.1
- 04-30-2008, 04:27 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Hi milet,
Welcome to our community. :)
Did you start to read any book or something on Java. If you are a really newbie for Java, it's better to refer well explained book my friend. Or you can read a well organized tutorial as well. Suns' official web site have a really nice tutorial.
On the other hand you can start work with simple tutorials too. Zosden have such a nice thing on his website.
Here is a simple code segment. But I'm not sure how far you an get it. ;)
Java Code:private void allInOne() { // Declaring an array of 5 elements int[] numbers = new int[5]; // Populating the array, using a for loop for(int i = 0; i < numbers.length; i++) { numbers[i] = (i * i * i); System.out.println(i + " element of the array is: " + numbers[i]); } // Display some elements on a if-esle statment for(int j = 0; j < numbers.length; j++) { if(numbers[j] < 10) System.out.println("Value of index " + j + " is less than 10."); else System.out.println("Value of index " + j + " is greater than 10."); } }
- 04-30-2008, 10:21 AM #6
Milet, the best place to start is at the Sun Java Tutorials!
The Java™ Tutorials
This site coveres everything you need to know in a clear and easy to understand manner! You'll learn alot there :DDid this post help you? Please
me! :cool:


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks