摘要:
1 public class Test2 { 2 static int Ef(int[] arr,int ed){ 3 int left = 0; 4 int right = arr.length-1; 5 while(left <= right){ 6 int tmp = (left+right) 阅读全文
摘要:
@Test public void test2() throws Exception { Properties pro = new Properties(); //读取配置文件的方式一: /*FileInputStream fis = new FileInputStream("src/jdbc.pr 阅读全文
摘要:
描述: 通过定时器,完成在控制台中,输出,倒计时5秒,输出吃饭了。 方法一:使用了Thread.sleep() public class CDemo { public static void main(String[] args) { Timer ti = new Timer(); TimerTas 阅读全文
摘要:
public class List4Demo { public static void main(String[] args){ ArrayList<Integer> li = new ArrayList<>(); li.add(436); li.add(1); li.add(1); li.add( 阅读全文