Thread: Need Help!
View Single Post
  #5 (permalink)  
Old 04-30-2008, 05:27 AM
Eranga's Avatar
Eranga Eranga is offline
Moderator
 
Join Date: Jul 2007
Location: Colombo, Sri Lanka
Posts: 3,082
Eranga has a spectacular aura aboutEranga has a spectacular aura about
Send a message via Yahoo to Eranga
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.

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."); } }
__________________
Use an appropriate Subject. "Help, urgent!" isn't one.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

Has someone helped you? Then you can
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
their helpful post.

Want to make your IDE the best?
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
(Close on September 4, 2008)

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote