public static void main(String[] args) throws SQLException {
Statement statement = conn.createStatement();
import java.io.File; public class CustomSearchDrive { public static void main(String[] args) { // 获取所有的根目录 File[] roots = File.listRoots(); // 排除特定的盘符 String[] excludedDrives = {"C:\\"}; // 添加要排除的盘符 for (File root : roots) { boolean isExcluded = false; for (String excludedDrive : excludedDrives) { if (root.getPath().equals(excludedDrive)) { isExcluded = true; break; } } if (!isExcluded) { System.out.println("Drive: " + root); } } } }
} catch (InterruptedException e) {
Animal[] animals = new Animal[2];
throw new ArithmeticException("除数不能为0");