1 import java.util.ArrayList; 2 3 public class HuaweiTest2 { 4 public static void main(String[] args) { 5 // System.out.println("Hello World!"); 6 } 7 8 public static Integer getMilliSecondsForInputInicialize2One(String inputStr){ 9 String trim = inputStr.trim(); 10 if (trim==null){ 11 return null; 12 } 13 if (trim.isEmpty()){ 14 return null; 15 } 16 String[] split = trim.split("\\s"); 17 String s = split[0]; 18 String trim1 = s.trim(); 19 Integer i1 = Integer.valueOf(trim1); 20 String s1 = split[1]; 21 String trim2 = s1.trim(); 22 Integer i2 = Integer.valueOf(trim2); 23 ArrayList<ArrayList<Integer>> arrayLists = new ArrayList<>(); 24 ArrayList<Integer> integers = new ArrayList<>(); 25 for (int i = 0; i < split.length; i++) { 26 if ((integers.size()+1)%i2==0){ 27 continue; 28 }else { 29 ArrayList<Integer> integers1 = new ArrayList<>(); 30 String s2 = split[i+2]; 31 integers1.add(Integer.valueOf(s2)); 32 String s3 = split[i+3]; 33 integers1.add(Integer.valueOf(s3)); 34 String s4 = split[i+4]; 35 integers1.add(Integer.valueOf(s4)); 36 arrayLists.add(integers1); 37 integers=integers1; 38 } 39 } 40 return null; 41 } 42 } 43 44 class MetrixSynchronizedInput{ 45 private String id; 46 private Integer mLine; 47 private Integer nColmn; 48 private Integer dataInt; 49 50 public String getId() { 51 return id; 52 } 53 54 public void setId(String id) { 55 this.id = id; 56 } 57 58 public Integer getmLine() { 59 return mLine; 60 } 61 62 public void setmLine(Integer mLine) { 63 this.mLine = mLine; 64 } 65 66 public Integer getnColmn() { 67 return nColmn; 68 } 69 70 public void setnColmn(Integer nColmn) { 71 this.nColmn = nColmn; 72 } 73 74 public Integer getDataInt() { 75 return dataInt; 76 } 77 78 public void setDataInt(Integer dataInt) { 79 this.dataInt = dataInt; 80 } 81 } 82 83 class MetrixCordination{ 84 private String id; 85 private Integer inicializeIIndex; 86 private Integer inicializeJIndex; 87 private Integer anotherExpandKIndex; 88 private Integer anotherExpandLIndex; 89 private String metixSynchronizedInputId; 90 91 public String getId() { 92 return id; 93 } 94 95 public void setId(String id) { 96 this.id = id; 97 } 98 99 public Integer getInicializeIIndex() { 100 return inicializeIIndex; 101 } 102 103 public void setInicializeIIndex(Integer inicializeIIndex) { 104 this.inicializeIIndex = inicializeIIndex; 105 } 106 107 public Integer getInicializeJIndex() { 108 return inicializeJIndex; 109 } 110 111 public void setInicializeJIndex(Integer inicializeJIndex) { 112 this.inicializeJIndex = inicializeJIndex; 113 } 114 115 public Integer getAnotherExpandKIndex() { 116 return anotherExpandKIndex; 117 } 118 119 public void setAnotherExpandKIndex(Integer anotherExpandKIndex) { 120 this.anotherExpandKIndex = anotherExpandKIndex; 121 } 122 123 public Integer getAnotherExpandLIndex() { 124 return anotherExpandLIndex; 125 } 126 127 public void setAnotherExpandLIndex(Integer anotherExpandLIndex) { 128 this.anotherExpandLIndex = anotherExpandLIndex; 129 } 130 131 public String getMetixSynchronizedInputId() { 132 return metixSynchronizedInputId; 133 } 134 135 public void setMetixSynchronizedInputId(String metixSynchronizedInputId) { 136 this.metixSynchronizedInputId = metixSynchronizedInputId; 137 } 138 }