S
sazykin
Hi,
i'm wriritng a smal programm and i whant to return array of string to
class here is an example i whant to do...
public class CreateArray{
public static String[] create_str_array(){
//here i'm reading a txt file to string array..
StringArray = dis.readLine(); i++;
then i'm trying to return my array with
return (String[])(line)
}}
ok no i supposed to have array of strings and i would like to access it
in my new class
public class AccessArray{
public static accessArray(String[] StringArray) {
//and here comes that i dont know how can access my array....
I have tried:
CreateArray[] StringArray = new CreateArray[20];
for (int i=0; i>10;i++)
String newArray = line.create_str_array();
//but this doesnt seems to work. please help....
}}
i whant to have pass exactly the same array to this class from my
CreateArray class
thanx
i'm wriritng a smal programm and i whant to return array of string to
class here is an example i whant to do...
public class CreateArray{
public static String[] create_str_array(){
//here i'm reading a txt file to string array..
StringArray = dis.readLine(); i++;
then i'm trying to return my array with
return (String[])(line)
}}
ok no i supposed to have array of strings and i would like to access it
in my new class
public class AccessArray{
public static accessArray(String[] StringArray) {
//and here comes that i dont know how can access my array....
I have tried:
CreateArray[] StringArray = new CreateArray[20];
for (int i=0; i>10;i++)
String newArray = line.create_str_array();
//but this doesnt seems to work. please help....
}}
i whant to have pass exactly the same array to this class from my
CreateArray class
thanx