fork download
  1. import java.util.*;
  2. import java.util.regex.*;
  3.  
  4. class Demo {
  5. static public void main(String[] args) {
  6. int rowCount = 10;
  7. String[][] data = new String[rowCount][];
  8. for (int x = 0; x < rowCount; x++) {
  9. data[x] = new String[]{"abc_" + x, "qwert_" + x};
  10. }
  11.  
  12. for (String[] strArr : data) {
  13. System.out.println(Arrays.toString(strArr));
  14. }
  15. }
  16. }
  17.  
Success #stdin #stdout 0.07s 380224KB
stdin
Standard input is empty
stdout
[abc_0, qwert_0]
[abc_1, qwert_1]
[abc_2, qwert_2]
[abc_3, qwert_3]
[abc_4, qwert_4]
[abc_5, qwert_5]
[abc_6, qwert_6]
[abc_7, qwert_7]
[abc_8, qwert_8]
[abc_9, qwert_9]