It's like dynamically changing the name of the sheets.



  •  for(int i =0; i < size; i++)
                {
                    List<String> s = sourceList.subList(s,t);
                }
    

    I want the List s to create s+i files (s1,s1, etc.).



  • In java, as in almost all languages with statistical typology, this is not possible. But you don't need variable s1, s2, s3. ♪ You can create a range of variables of any type (even type of mass). In Java, it could look like, ArrayList<List<String>> s = new ArrayList<>(); Next. s.add(sourceList.subList(i*10,(i+1)*10)) Constants took your previous question.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2