Skip to content

Commit c81a4fe

Browse files
测试
1 parent 4a4b480 commit c81a4fe

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package com.string;
2+
3+
public class CharAtTest {
4+
5+
public static void main(String[] args) {
6+
// String str = "adxfwf";
7+
// char c = str.charAt(4);
8+
// System.out.println(c);
9+
10+
// char[] chars = {'a','b','d'};
11+
// String str = new String(chars);
12+
// System.out.println(str);
13+
//
14+
15+
String str = "adxcxvw";
16+
char[] chars = str.toCharArray();
17+
18+
}
19+
}

0 commit comments

Comments
 (0)