当前位置:网站首页>Use of file class
Use of file class
2022-07-03 07:21:00 【four thousand three hundred and forty-three】

Common constructors :


package File;
import org.junit.Test;
import java.io.File;
public class FileTest {
@Test
public void test1(){
// How to create File Class : Constructor one :
// Relative to current module
// ( Relative paths ) Compared with a certain path
File file1 = new File("hello.txt");
// ( Absolute path ) The path to the file or file directory that contains the drive letter
File file2 = new File("D:\\java project\\day07\\he.txt");
}
@Test
public void test2(){
// Constructors 2:
File file3 = new File("D:\\java project","day07");
// Constructors 3:
File file4 = new File(file3,"hi.txt");
}
}
边栏推荐
- SecureCRT取消Session记录的密码
- VMWare网络模式-桥接,Host-Only,NAT网络
- TCP cumulative acknowledgement and window value update
- Margin left: -100% understanding in the Grail layout
- 3311. 最长算术
- [set theory] equivalence classes (concept of equivalence classes | examples of equivalence classes | properties of equivalence classes | quotient sets | examples of quotient sets)*
- Book recommendation~
- php artisan
- Jeecg request URL signature
- Specified interval inversion in the linked list
猜你喜欢

JS monitors empty objects and empty references

New stills of Lord of the rings: the ring of strength: the caster of the ring of strength appears
![[set theory] partition (partition | partition example | partition and equivalence relationship)](/img/f0/c3c82de52d563f3b81d731ba74e3a2.jpg)
[set theory] partition (partition | partition example | partition and equivalence relationship)

Homology policy / cross domain and cross domain solutions /web security attacks CSRF and XSS

SecureCRT password to cancel session recording

带你全流程,全方位的了解属于测试的软件事故
![[Fiddler problem] solve the problem about Fiddler's packet capturing. After the mobile network is configured with an agent, it cannot access the Internet](/img/9d/42dfef67246740f0dba0c6d8f1b625.jpg)
[Fiddler problem] solve the problem about Fiddler's packet capturing. After the mobile network is configured with an agent, it cannot access the Internet

Deep learning parameter initialization (I) Xavier initialization with code

7.2 brush two questions

JMeter test result output
随机推荐
MySQL syntax (basic)
Inno setup production and installation package
PAT甲级真题1166
Selenium key knowledge explanation
php安装swoole扩展
II. D3.js draw a simple figure -- circle
The difference between typescript let and VaR
Use the jvisualvm tool ----- tocmat to start JMX monitoring
[set theory] equivalence classes (concept of equivalence classes | examples of equivalence classes | properties of equivalence classes | quotient sets | examples of quotient sets)*
Book recommendation~
Use of framework
“百度杯”CTF比赛 2017 二月场,Web:爆破-1
专题 | 同步 异步
IPv4 address
Some experiences of Arduino soft serial port communication
C code production YUV420 planar format file
Advanced API (byte stream & buffer stream)
SecureCRT password to cancel session recording
dataworks自定義函數開發環境搭建
Common problems in io streams