一.导出Excel表格的两种方式,其中两种方式指的是导出XML数据类型的Excel(即保存的时候可以只需要修改扩展名为.xls)和真正的Excel这两种. using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; using System.Xml; using Ipms.Server.Business; using Ipms.Ser…
1.首先来说说创建线程的两种方式 一种方式是继承Thread类,并重写run()方法 public class MyThread extends Thread{ @Override public void run() { // TODO Auto-generated method stub } } //线程使用 MyThread mt = new MyThread(); //创建线程 mt.start(); //启动线程 另外一种方式是实现Runnable接口 public class MyTh…
1.在Java中,创建一个字符串有两种方式 String x = "abc";String y = new String("abc"); 这两种方式有什么区别呢? 2.双引号("")和构造器 第一个案例: String a = "abcd";String b = "abcd";System.out.println(a == b); // TrueSystem.out.println(a.equals(b))…