@@ -74,31 +74,40 @@ public static void main(String ... args) throws Throwable {
74
74
.forEach (System .out ::println );
75
75
76
76
// Common concatenation patterns
77
- String SS = String .valueOf (args .length ) + String .valueOf (args .length );
78
- String CS = "string" + String .valueOf (args .length );
79
- String SC = String .valueOf (args .length ) + "string" ;
80
- String SCS = String .valueOf (args .length ) + "string" + String .valueOf (args .length );
81
- String CSS = "string" + String .valueOf (args .length ) + String .valueOf (args .length );
82
- String CSC = "string" + String .valueOf (args .length ) + "string" ;
83
- String SSC = String .valueOf (args .length ) + String .valueOf (args .length ) + "string" ;
84
- String CSCS = "string" + String .valueOf (args .length ) + "string" + String .valueOf (args .length );
85
- String SCSC = String .valueOf (args .length ) + "string" + String .valueOf (args .length ) + "string" ;
86
- String CSCSC = "string" + String .valueOf (args .length ) + "string" + String .valueOf (args .length ) + "string" ;
87
- String SCSCS = String .valueOf (args .length ) + "string" + String .valueOf (args .length ) + "string" + String .valueOf (args .length );
88
- String CI = "string" + args .length ;
89
- String IC = args .length + "string" ;
90
- String SI = String .valueOf (args .length ) + args .length ;
91
- String IS = args .length + String .valueOf (args .length );
92
- String CIS = "string" + args .length + String .valueOf (args .length );
93
- String CSCI = "string" + String .valueOf (args .length ) + "string" + args .length ;
94
- String CIC = "string" + args .length + "string" ;
95
- String CICI = "string" + args .length + "string" + args .length ;
96
- String CJ = "string" + System .currentTimeMillis ();
97
- String JC = System .currentTimeMillis () + "string" ;
98
- String CD = "string" + (args .length /2.0 );
99
- String CJC = "string" + System .currentTimeMillis () + "string" ;
100
- String CJCJ = "string" + System .currentTimeMillis () + "string" + System .currentTimeMillis ();
101
- String CJCJC = "string" + System .currentTimeMillis () + "string" + System .currentTimeMillis () + "string" ;
77
+ int i = args .length ;
78
+ String s = String .valueOf (i );
79
+
80
+ String SS = s + s ;
81
+ String CS = "string" + s ;
82
+ String SC = s + "string" ;
83
+ String SCS = s + "string" + s ;
84
+ String CSS = "string" + s + s ;
85
+ String CSC = "string" + s + "string" ;
86
+ String SSC = s + s + "string" ;
87
+ String CSCS = "string" + s + "string" + s ;
88
+ String SCSC = s + "string" + s + "string" ;
89
+ String CSCSC = "string" + s + "string" + s + "string" ;
90
+ String SCSCS = s + "string" + s + "string" + s ;
91
+ String SSCSS = s + s + "string" + s + s ;
92
+ String SSSSS = s + s + s + s + s ;
93
+
94
+ String CI = "string" + i ;
95
+ String IC = i + "string" ;
96
+ String SI = s + i ;
97
+ String IS = i + s ;
98
+ String CIS = "string" + i + s ;
99
+ String CSCI = "string" + s + "string" + i ;
100
+ String CIC = "string" + i + "string" ;
101
+ String CICI = "string" + i + "string" + i ;
102
+
103
+ long l = System .currentTimeMillis ();
104
+ String CJ = "string" + l ;
105
+ String JC = l + "string" ;
106
+ String CJC = "string" + l + "string" ;
107
+ String CJCJ = "string" + l + "string" + l ;
108
+ String CJCJC = "string" + l + "string" + l + "string" ;
109
+ double d = i / 2.0 ;
110
+ String CD = "string" + d ;
102
111
103
112
String newDate = DateTimeFormatter .ISO_LOCAL_DATE_TIME .format (
104
113
LocalDateTime .now (ZoneId .of ("GMT" )));
0 commit comments