Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
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.

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-2007, 02:12 PM
Member
 
Join Date: Oct 2007
Posts: 9
smilejava is on a distinguished road
input placed in array
im working on this exercise of mine, trying to do the interface,i already made it without the array.. but when i tried to add array the Buffered reader i think is not working.. here's the code....

Code:
package sampInterface; import java.io.*; public class Main { int y = 0; public static void main(String[] args) throws IOException { Artist smile = new Artisttalent(); Main smile2 = new Main(); smile2.wannabees(); audition(smile); } static void audition(Artist s) { s.act(); s.dance(); s.sing(); } public void wannabees() throws IOException { // TODO Auto-generated method stub BufferedReader takeone = new BufferedReader(new InputStreamReader( System.in)); System.out.println("Enter wannabee:"); String[] aspiring; aspiring = new String[5] ; int i = 0; for (y = i; y >= aspiring.length; y++) { aspiring[i] = takeone.readLine(); System.out.println("take one! " + aspiring[y] + " action!"); } } }
Bookmark Post in Technorati
Sponsored Links
  #2 (permalink)  
Old 11-05-2007, 02:32 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
Please do not post the same thread twice on the forums. I am closing this thread now. Please continue discussion on the other one...
Bookmark Post in Technorati
Sponsored Links
Closed Thread


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
skipping input windie_86 New To Java 1 02-12-2008 09:09 PM
cant take input from user new_1 New To Java 6 12-25-2007 09:38 AM
input placed in array smilejava New To Java 5 11-12-2007 09:29 AM
beginner needs help with OBD-II input andrewos New To Java 3 07-30-2007 11:46 AM
how to take input and verify input in Java programs bilal_ali_java Advanced Java 0 07-21-2007 10:46 AM


All times are GMT +3. The time now is 11:22 AM.


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