maxzhao

不要害怕Exception和Error

  • Home
  • About
  • Tags
  • Categories
  • Archives
  • Schedule
  • Search
  • Table of Contents
  • Overview
赵联胜

赵联胜

小码农赵联胜的博客,从遇到Java到爱上Java,工作之余学习Java生态圈中的各种技术。
443 posts
190 categories
240 tags
友情链接
  • 我的简书
0%

Java挪动系统文件

Edited on 2023-11-17 In Java
1
2
3
4
5
6
7
8
9
10
public class TestHttpClient {
@Test
public void test(){
File source = new File("/data/source.txt");
File target = new File("/data/target/source.txt");
if(source.exists()){
source.renameTo(target);
}
}
}

本文地址: https://github.com/maxzhao-it/blog/post/2b68cbc2/

# Java # IO
Java计算唯一文件MD5
OKHttp发送Post
© 2024 赵联胜