Hello,
i know that i am not supposed to ask this kind of question
but i don't really know how to fix the error in this below code.
--------------------------------------------------------------------
import java.io.*;
class testArray
{
boolean check = true;
String[] c;
String[] read;
BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
int i = 0;
public static void main(String [] args)
{
int[] dog;
while(check == true)
{
System.out.println("Type anything : ");
read[i] = b.readLine();
System.out.println("more? :");
c[i] = b.readLine();
if((c.charAt(0) == 'n') || (c.charAt(0) == 'N'))
{
check = false;
}
else
{
check = true;
}
}
for(int j = 0; j < read.length() ; j++)
{
System.out.println("name: " + read[j]);
}
}
}
----------------------
Very Very thx and really appreciate..
Regards,
TOm