关于java里小数点的保留 1.先给大家看一个代码. import java.util.*;import java.text.*; public class A { public static void main(String[] args ) { System.out.println("请输入半径的大小"); int r; Scanner in=new Scanner(System.in); r=in.nextInt();
在 Java 中不使用多余变量交换两个字符串 public class Test { public static void main(String[] args) { String a = "Hello"; String b = "World"; System.out.println("Strings before swap: a = " + a + " and b = " + b); a = a + b; b = a.sub
想删除本地一个项目目录,结果windows说路径太长,不能删除.于是试了试java删除.一切ok.以后一定要抓紧时间学python. /** * Created by rmiao on 4/21/2016. */ public class TestDel { public static void main(String[] args) throws IOException { String dest = "D:\\perforce\\workspace2\\EPC"; File fil