@@ -48,7 +48,7 @@ private static void testEventBus() {
4848 // Callback/Listener
4949 //
5050 Student student2 = new Student (2 , "KK02" );
51- System .out .println (" I want " + student2 + " run now." );
51+ System .out .println (Thread . currentThread (). getName ()+ " I want " + student2 + " run now." );
5252 bus .post (new AEvent (student2 ));
5353 }
5454
@@ -81,6 +81,7 @@ private static List<Integer> testList() {
8181 List <Integer > list = Lists .newArrayList (4 ,2 ,3 ,5 ,1 ,2 ,2 ,7 ,6 );
8282
8383 List <List <Integer >> list1 = Lists .partition (list ,3 );
84+
8485 print (list1 );
8586 return list ;
8687 }
@@ -89,10 +90,11 @@ private static List<String> testString() {
8990 // 字符串处理
9091 //
9192 List <String > lists = Lists .newArrayList ("a" ,"b" ,"g" ,"8" ,"9" );
93+
9294 String result = Joiner .on ("," ).join (lists );
9395 System .out .println (result );
9496
95- String test = "34344,34,34,哈哈" ;
97+ String test = "34344,,, 34,34,哈哈" ;
9698 lists = Splitter .on ("," ).splitToList (test );
9799 System .out .println (lists );
98100 return lists ;
@@ -111,7 +113,7 @@ public static class AEvent{
111113
112114 @ Subscribe
113115 public void handle (AEvent ae ){
114- System .out .println (ae .student + " is running." );
116+ System .out .println (Thread . currentThread (). getName ()+ " " + ae .student + " is running." );
115117 }
116118
117119
0 commit comments