当前位置:网站首页>打印流与System.setout();
打印流与System.setout();
2022-07-01 04:46:00 【洋啊桑815】
import java.io.*;
public class Test1 {
public static void main(String[] args) throws Exception {
//打印流
PrintStream pa=new PrintStream("");
pa.print("这是一个打印流,这里可以打印任意类型的数据");
PrintWriter pw=new PrintWriter("");
pw.print("这是一个打印流,这里可以打印任意类型的数据");
//上面这两个流在打印功能上没有区别
System.setOut(pa);
System.out.println("这里面是内容经过上一行的改变就会直接打印到对应的文件中去");
}
边栏推荐
- Leecode question brushing record 1310 subarray XOR query
- 最长递增子序列及最优解、动物总重量问题
- How to do the performance pressure test of "Health Code"
- Openresty rewrites the location of 302
- How to use maixll dock
- Leecode question brushing record 1332 delete palindrome subsequence
- Section 27 remote access virtual private network workflow and experimental demonstration
- Registration for R2 mobile pressure vessel filling test in 2022 and R2 mobile pressure vessel filling free test questions
- Technology sharing | broadcast function design in integrated dispatching
- Dual contractual learning: text classification via label aware data augmentation reading notes
猜你喜欢

VIM easy to use tutorial

2022 question bank and answers for safety production management personnel of hazardous chemical production units

2022 polymerization process test questions and simulation test

神经网络的基本骨架-nn.Moudle的使用

Neural networks - use sequential to build neural networks
![[pat (basic level) practice] - [simple simulation] 1064 friends](/img/37/0ef0f8aae15ae574be1d76c97497c9.jpg)
[pat (basic level) practice] - [simple simulation] 1064 friends

LM small programmable controller software (based on CoDeSys) note 20: PLC controls stepping motor through driver

无器械健身
![AssertionError assert I.ndim == 4 and I.shape[1] == 3](/img/b1/0109bb0f893eb4c8915df36c100907.png)
AssertionError assert I.ndim == 4 and I.shape[1] == 3

Basic usage, principle and details of session
随机推荐
[ue4] event distribution mechanism of reflective event distributor and active call event mechanism
2022 G2 power station boiler stoker examination question bank and G2 power station boiler stoker simulation examination question bank
How do I sort a list of strings in dart- How can I sort a list of strings in Dart?
[difficult] sqlserver2008r2, can you recover only some files when recovering the database?
Pytest automated testing - compare robotframework framework
手动实现一个简单的栈
神经网络-非线性激活
Leecode question brushing record 1332 delete palindrome subsequence
2022 polymerization process test questions and simulation test
Extension fragment
Common methods in transforms
LeetCode_35(搜索插入位置)
VR线上展览所具备应用及特色
[pat (basic level) practice] - [simple simulation] 1064 friends
分布式-总结列表
Question bank and answers for chemical automation control instrument operation certificate examination in 2022
【硬十宝典目录】——转载自“硬件十万个为什么”(持续更新中~~)
Basic exercise of test questions hexadecimal to decimal
解决:Thread 1:[<*>setValue:forUndefinedKey]:this class is not key value coding-compliant for the key *
This sideline workload is small, 10-15k, free unlimited massage