- Timestamp:
- 2019-04-22T14:58:53+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/is-sheet-music-encore/trunk/java-gen-corpus/TabRndListGen.java
r33007 r33031 12 12 try{ 13 13 if (args.length != 3){ 14 System.out.println("Usage: RandomItemSelecta<inputFilename> <outputCount> <outputFilename>");14 System.out.println("Usage: TabRndListGen <inputFilename> <outputCount> <outputFilename>"); 15 15 } 16 16 else{ … … 27 27 ArrayList<String> subList; 28 28 String line = null; 29 String[] item; 29 30 30 31 //Add items to Array 31 32 while ((line = buf.readLine()) != null) { 32 list.add(line); 33 //Split line by tab 34 item = line.split("\t", -1); 35 //Add first element (ID) 36 list.add(item[0]); 33 37 } 34 38 //randomize list
Note:
See TracChangeset
for help on using the changeset viewer.