This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select * from v$sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Suffix Meaning | |
_ai Accent insensitive | |
_as Accent sensitive | |
_ci Case insensitive | |
_cs case-sensitive | |
_ks Kana sensitive | |
_bin Binary |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
for root, dirs, files in os.walk(".", topdown=False): | |
for name in files: | |
print(os.path.join(root, name)) | |
for name in dirs: | |
print(os.path.join(root, name)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public final class String | |
implements java.io.Serializable, Comparable, CharSequence { | |
private final char value[]; | |
.... | |
public void getChars(int srcBegin, int srcEnd, char dst[], int dstBegin) { | |
if (srcBegin < 0) { | |
throw new StringIndexOutOfBoundsException(srcBegin); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestString { | |
public static void main(String[] args) { | |
String query = "SELECT first_name, last_name, "; | |
query += " age, gender "; | |
query += " FROM User WHERE id = ?"; | |
query += " AND actived = true "; | |
query += " AND c = true "; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestString { | |
public TestString(); | |
Code: | |
0: aload_0 | |
1: invokespecial #1 // Method java/lang/Object."":()V | |
4: return | |
public static void main(java.lang.String[]); | |
Code: | |
0: ldc #2 // String SELECT first_name, last_name, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TestString { | |
public TestString(); | |
Code: | |
0: aload_0 | |
1: invokespecial #1 // Method java/lang/Object."":()V | |
4: return | |
public static void main(java.lang.String[]); | |
Code: | |
0: ldc #2 // String SELECT first_name, last_name, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String concat(String str) { | |
int otherLen = str.length(); | |
if (otherLen == 0) { | |
return this; | |
} | |
int len = value.length; | |
char buf[] = Arrays.copyOf(value, len + otherLen); | |
str.getChars(buf, len); | |
return new String(buf, true); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String makeAnAwesomeString() { | |
StringBuilder sb = new StringBuilder(); | |
for (int i = 0; i < 10_000; i++) { | |
sb.append(i); | |
} | |
return sb.toString(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public String makeAnAwesomeString() { | |
String text = ""; | |
for (int i = 0; i < 10_000; i++) { | |
text += i; | |
} | |
return text; | |
} |