摘要:
public class SuLie { public static void main(String[] args){ String str1="adjklasjfkdlsafj"; int x=str1.lastIndexOf("j"); if(x+1==str1.length()){ ... 阅读全文
摘要:
静态方法是使用公共内存空间的,就是说所有对象都可以直接引用,不需要创建对象再使用该方法。 例如,我创建一个类,里面有一个静态方法: class Test{ public static int z(int xx,int yy){ return xx+yy; } public int zz(int xx... 阅读全文