thanks javathinker now it allows me to do so..
but then, im getting into confusion with what i am doing.. i want the array to store 3 wannabees.. but then, what the FOR LOOP is doing was, it just doing the statement again and i know that.. but what i want to happen is, like in 3 times (because of the size of the array), i would enter wannabee and perform the audition method then enter another then perform it again and so on... and the end i would like to Display all the wannabees, but how would i do that?!!
here's my revised 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();
String[] listaspiring;
listaspiring = new String[3] ;
int i = 0;
for (int y = i; y < listaspiring.length; y++)
{
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));
String[] aspiring;
aspiring = new String[1] ;
for(int i = 0; i < aspiring.length; i ++){
System.out.println("Enter wannabee:");
aspiring[i] = takeone.readLine();
System.out.println("take one! " + aspiring[i] + " action!");
System.out.println(aspiring[i]);
}
}
}