字符串split

字符串学习:
 String strss
= null ;
       String [] str
= { " hello " , " world " , " janaury " , " february " , " thirsday " , " monday " };    
         
for ( int  i = 0 ;i < str.length;i ++ ){
        strss
= str[i] + " / " ;
           }
       
// String strs="nihao a he llo worl d dsa a d f a d";        
        String [] sr = strss.split( " / " );
       
for ( int  i = 0 ;i < str.length;i ++ ){
        System.out.println(str[i]);

 String strs = " nihao a he llo worl d dsa a d f a d " ;        
        String [] str
= strs.split( "" );
        
for ( int  i = 0 ;i < str.length;i ++ ){
        System.out.println(str[i]);
        }

你可能感兴趣的:(字符串split)