`
zeyuphoenix
  • 浏览: 57882 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="ProgId" content="Word.Document"> <meta name="Generator" content="Microsoft Word 12"> <meta name="Originator" content="Microso ...
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="ProgId" content="Word.Document"> <meta name="Generator" content="Microsoft Word 12"> <meta name="Originator" content="Microso ...
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="ProgId" content="Word.Document"> <meta name="Generator" content="Microsoft Word 12"> <meta name="Originator" content="Microso ...
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="ProgId" content="Word.Document"> <meta name="Generator" content="Microsoft Word 12"> <meta name="Originator" content="Microso ...
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="ProgId" content="Word.Document"> <meta name="Generator" content="Microsoft Word 12"> <meta name="Originator" content="Microso ...
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="ProgId" content="Word.Document"> <meta name="Generator" content="Microsoft Word 12"> <meta name="Originator" content="Microso ...
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="ProgId" content="Word.Document"> <meta name="Generator" content="Microsoft Word 12"> <meta name="Originator" content="Microso ...
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="ProgId" content="Word.Document"> <meta name="Generator" content="Microsoft Word 12"> <meta name="Originator" content="Microso ...
读文件: import java.io.BufferedReader; import java.io.File; import java.io.FileInputStream; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.RandomAccessFile; import java.io.Reader; /** * Reader和Writer两个类,这两 ...
/** * 一个自定义对象,比较用 */ public class User { private String id; private int age; public User(String id, int age) { this.id = id; this.age = age; } public int getAge() { return age; } public void setAge(int age) { this.age = age; } public String getId() { re ...
测试输出: public class StringBufferTest { private void method(StringBuffer a, StringBuffer b) { a.append(b); b = a; } public static void main(String[] args) { StringBufferTest test = new StringBufferTest(); StringBuffer x = new StringBuffer("A"); StringBuffer y = new ...
测试输出 public class FCTest { public static void main(String[] args) { new B(); new B("b"); } } class A { public A() { System.out.println("A()"); } public A(String s) { System.out.println("A(String)"); } } class B extends A { public ...
测试输出 public class TestOverride { public static void main(String[] args) { new D(); } } class E { int x = dd(); int y = cc(); public int dd() { System.out.println("父类普通方法"); return 1; } public static int cc() { System.out.println("父类static方法"); ...
// 用户自己开发一个学生类,包括姓名\学号\成绩 三个属性,现在用户希望能使用// java.util.Arrays.sort()方法来根据学员成绩,排序一个学生类数组,请问要如何实现?//主要是要想到用Comparator来实现,熟悉api是关键 import java.util.Arrays; import java.util.Comparator; /** * The Class SortStudent. */ public class SortStudent { private static Student[] students = null; /* ...
// 实现replace函数,不要使用字符串搜索替换函数。 public class Replace { public static void main(String[] args) { String info = "system runs"; System.out.println(replace(info, "st", "$$")); } public static String replace(String source, String toReplace, String replace) { ...
Global site tag (gtag.js) - Google Analytics