File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ public class IOUtilsDemo {
18
18
* @param str
19
19
* @param length
20
20
*/
21
- public static void readTest (String str ,int length ){
21
+ public static void read (String str , int length ){
22
22
try {
23
23
byte [] bytes = new byte [length ];
24
24
InputStream is = IOUtils .toInputStream (str );
Original file line number Diff line number Diff line change 3
3
import org .apache .commons .lang3 .StringUtils ;
4
4
5
5
/**
6
- * Created by lenovo on 二月
6
+ * 测试运行。见test.com文件夹的测试类
7
+ * StringUtils中的方法大多是不会对null报空指针异常的。
7
8
*/
8
9
public class StringUtilsDemo {
9
10
public static void remove (){
@@ -27,6 +28,17 @@ public static void empty(){
27
28
;
28
29
}
29
30
31
+ public static void equalsIgnoreCase (){
32
+ if (StringUtils .equalsIgnoreCase ("abc" ,"Abc" )) {
33
+ System .out .println ("第一组字符串忽略大小写是一样的" );
34
+ }
35
+
36
+ if (StringUtils .equalsIgnoreCase (" " ,"" )){
37
+ System .out .println ("第二组字符串忽略大小写是一样的" );
38
+ }
39
+ }
40
+
41
+
30
42
public static void main (String [] args ) {
31
43
32
44
}
You can’t perform that action at this time.
0 commit comments