码迷,mamicode.com
首页 >  
搜索关键字:string+    ( 95377个结果)
深入解析String#intern
在 JAVA 语言中有8中基本类型和一种比较特殊的类型String。这些类型为了使他们在运行过程中速度更快,更节省内存,都提供了一种常量池的概念。常量池就类似一个JAVA系统级别提供的缓存。 8种基本类型的常量池都是系统协调的,String类型的常量池比较特殊。它的主要使用方法有两种: 直接使用双引 ...
分类:其他好文   时间:2020-10-09 20:51:31    阅读次数:25
shell中的判断
shell进行判断
分类:系统相关   时间:2020-10-09 20:44:43    阅读次数:24
C++ 浅拷贝与深拷贝
#include <iostream> #include <string> using namespace std; class Student { public: Student() { cout << "默认构造函数" << endl; }; Student(int a, int s) { co ...
分类:编程语言   时间:2020-10-09 20:23:02    阅读次数:20
@Value
使用@Value一个个字段给值 @Component public class Man { @Value("${person.lastName}") private String lastName; @Value("12") private Integer age; @Value("false") ...
分类:其他好文   时间:2020-10-08 19:37:54    阅读次数:21
java常用类——String、Object和包装类
1.String类 1.1字符列表 了 java 中的8种基本数据类型。其中, char 是字符类型,占2个字节16位,默认值 是 '\u0000' 。用 char 类型的变量来表示单个字符,用单引号引起来。 多个字符按照一定的顺序组成的列表就叫作字符序列 String 字符串 StringBuff ...
分类:编程语言   时间:2020-10-08 19:07:00    阅读次数:27
File
基本单词: file :文件 directory:文件夹 path:目录 静态成员变量 static String pathSeparator与系统相关的路径分隔符字符,为方便起见,表示为字符串。 static char pathSeparatorChar与系统相关的路径分隔符。 static St ...
分类:其他好文   时间:2020-10-08 19:05:37    阅读次数:21
字符串的截取
字符串方法 String subString(int begin)截取字符串,开始索引; 字符串方法 String subString(int begin,int end)截取字符串,开始索引,结束索引;【包含开始不包含结束】 public static void main(String[] arg ...
分类:其他好文   时间:2020-10-08 18:59:06    阅读次数:21
最长公共子串
思路参考:最长公共子序列 public class Solution { /** * longest common substring * @param str1 string字符串 the string * @param str2 string字符串 the string * @return st ...
分类:其他好文   时间:2020-10-08 18:32:02    阅读次数:18
PPT动手动脑3
1. public class test5 { public static void main(String[] args) { Foo obj1=new Foo(); Foo obj2=new Foo(); Foo obj3=obj1; System.out.println(obj1==obj2) ...
分类:其他好文   时间:2020-10-07 21:41:22    阅读次数:39
写—FileWrite
import java.io.FileWriter; import java.io.IOException; public class Demo04Write { public static void main(String[] args) throws IOException { FileWrit ...
分类:其他好文   时间:2020-10-07 21:37:09    阅读次数:32
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!