Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-02-2008, 08:54 PM
Zebra's Avatar
Member
 
Join Date: Apr 2008
Location: Louisville, Indiana/Kentucky
Posts: 64
Zebra is on a distinguished road
Need another program with and if-else, array, and for loop
Please. If you can make it I will love you forever. Please I need a program (doesn't matter what about, doesn't have to be advanced). I just need a study guide for my big Java I final coming up.

The program needs:
-For loop
-Array
-If-else statement

Thanks. Hope somebody can help me.
__________________
I am a Java n00b.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-02-2008, 09:28 PM
Member
 
Join Date: Apr 2008
Posts: 23
theonly is on a distinguished road
The following is not a full program, but sample codes.

Code:
// For loop & Array & If-else program //Creating array of length 21 String[] array = new String[20]; // Code for filling array with number 0 - 20 for( int i = 0; i < array.length -1; i++ ) { array[i] = i; } // If-else statement if (array != null) { System.out.println("Array is not empty"); } else { System.out.println("Array is empty"); }
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 05-05-2008, 02:56 PM
Zebra's Avatar
Member
 
Join Date: Apr 2008
Location: Louisville, Indiana/Kentucky
Posts: 64
Zebra is on a distinguished road
Thanks very much!

+rep
__________________
I am a Java n00b.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to right a program that find kth number in two sorted array? fireball2008 New To Java 8 04-22-2008 04:21 AM
Array program help adelgado0723 New To Java 2 04-16-2008 02:19 PM
Timing array loop performance Java Tip java.lang 0 04-14-2008 09:43 PM
Need help with my 1st array program Phobos0001 New To Java 5 03-22-2008 07:23 AM
How to execute an External Program through Java program JavaBean Java Tips 0 10-04-2007 10:33 PM


All times are GMT +3. The time now is 12:44 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org