There is a method that processes the data and puts them into several arrays and returns a two-dimensional array. The problem is that you need to return two arrays of type String [] and one of type int []. As you know, they are not in one array. How can I solve the problem so that I get something like this returned array:

{ String[] , String[] , int[] }; 

Well, a method like this:

  public static void getData(){ String[] data1 = // получить данные String[] data2 = // получить данные int[] integetData = // получить данные // обрабатоваю return new String[]{ data1 , data2}; // надо как то втолкать массив в return } 

Maybe you know from experience what feints

  • 3
    You can create a class that has three fields - arrays, and return an object of this class. - post_zeew pm
  • @post_zeew is real. I did not think of it. ATP for the answer - user8978194

0