HTML HTML5 HTMLタグ スマートフォン |
CSS CSSプロパティ CSS・HTML便利ツール |
HTML色見本 配色組み合わせツール 特殊文字 |
JAVA Android |
PHP Smarty修飾子 EXCEL |
String str = "abc";
String str = "ABCDEFG"; System.out.println(str.length());
String str = "ABC"; if (str.equals("ABC")){ System.out.println("str=ABCです"); }
if (str1 == str2){}
String str = "ABC"; if (str.equalsIgnoreCase("abc")){ System.out.println("str=ABC または abc です"); }
String str1 = "ABC"; String str2 = "DEF"; if (str1.compareTo(str2) == 0) { ... }
String str1 = "ABC"; String str2 = "abc"; if (str1.compareToIgnoreCase(str2) == 0) { ... }
String str = "ABCDEFG"; System.out.println(str.charAt(2));
String str = "ABCDEFG"; System.out.println(str.charAt(2));
String str = "ABCDEFG"; System.out.println(str.indexOf('C'));
String str = "ABCABCABC"; System.out.println(str.indexOf('A', 2));
String str = "ABCABCABC"; System.out.println(str.lastIndexOf('A'));
String str = "ABCDEFG"; System.out.println(str.indexOf("DEF"));
String[] strs = "2003/05/19".split("/"); for (int i = 0; i < strs.length; i++) { System.out.println(strs[i]); }