Results 1 to 2 of 2
  1. #1
    smilejava is offline Member
    Join Date
    Oct 2007
    Rep Power

    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....

    Java Code:
    package sampInterface;
    public class Main {
    	int y = 0;
    	public static void main(String[] args) throws IOException {
    		Artist smile = new Artisttalent();
    		Main smile2 = new Main();
    	static void audition(Artist s) {
    	public void wannabees() throws IOException {
    		// TODO Auto-generated method stub
    		BufferedReader takeone = new BufferedReader(new InputStreamReader(;
    			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!");

  2. #2
    JavaBean's Avatar
    JavaBean is offline Moderator
    Join Date
    May 2007
    Rep Power


    Please do not post the same thread twice on the forums. I am closing this thread now. Please continue discussion on the other one...

Similar Threads

  1. skipping input
    By windie_86 in forum New To Java
    Replies: 1
    Last Post: 02-12-2008, 07:09 PM
  2. cant take input from user
    By new_1 in forum New To Java
    Replies: 6
    Last Post: 12-25-2007, 07:38 AM
  3. input placed in array
    By smilejava in forum New To Java
    Replies: 5
    Last Post: 11-12-2007, 07:29 AM
  4. beginner needs help with OBD-II input
    By andrewos in forum New To Java
    Replies: 3
    Last Post: 07-30-2007, 09:46 AM
  5. how to take input and verify input in Java programs
    By bilal_ali_java in forum Advanced Java
    Replies: 0
    Last Post: 07-21-2007, 08:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts