Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
43 lines (34 loc) · 942 Bytes

File metadata and controls

43 lines (34 loc) · 942 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import java.util.Arrays;
import java.util.Locale;
/**
* Created by riven_chris on 15/5/25.
*/
public class MyString {
public static void main(String[] args) {
// upCase();
IEquals();
}
public static void upCase() {
String q = "how are you";
System.out.println(q);
String qq = q.toUpperCase();
System.out.println(qq);
System.out.println(q);
byte[] bytes = q.getBytes();
int i = q.length();
char[] chars = new char[i];
q.getChars(0, i, chars, 0);
// System.out.println(chars);
System.out.println("1".compareTo("a"));
}
public static void IEquals() {
String s1 = "";
String s2 = new String("");
System.out.println(s1.equals(s2));
System.out.println(s1.contentEquals(s2));
s1.indexOf("");
s1.concat("dfsf");
String.valueOf("");
s1.intern();
}
}
Morty Proxy This is a proxified and sanitized view of the page, visit original site.