Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-05-2007, 01:12 PM
Member
 
Join Date: Oct 2007
Posts: 9
Rep Power: 0
smilejava is on a distinguished road
Default 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
  #2 (permalink)  
Old 11-05-2007, 01:32 PM
JavaBean's Avatar
Moderator
 
Join Date: May 2007
Posts: 1,272
Rep Power: 10
JavaBean is on a distinguished road
Default
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
Closed Thread

Bookmarks

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

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


All times are GMT +2. The time now is 01:06 AM.



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