当前位置:网站首页>Print stream and system setout();
Print stream and system setout();
2022-07-01 04:48:00 【Yangasang 815】
import java.io.*;
public class Test1 {
public static void main(String[] args) throws Exception {
// Print stream
PrintStream pa=new PrintStream("");
pa.print(" This is a print stream , Here you can print any type of data ");
PrintWriter pw=new PrintWriter("");
pw.print(" This is a print stream , Here you can print any type of data ");
// There is no difference in the printing function between the above two streams
System.setOut(pa);
System.out.println(" The content will be directly printed into the corresponding file after the change in the previous line ");
}
边栏推荐
- [pat (basic level) practice] - [simple simulation] 1064 friends
- Take a cold bath
- Announcement on the list of Guangdong famous high-tech products to be selected in 2021
- Leecode question brushing record 1332 delete palindrome subsequence
- 手动实现一个简单的栈
- 线程安全问题
- Daily algorithm & interview questions, 28 days of special training in large factories - the 13th day (array)
- 对象的序列化与反序列化
- Basic skeleton of neural network nn Use of moudle
- 解决:Thread 1:[<*>setValue:forUndefinedKey]:this class is not key value coding-compliant for the key *
猜你喜欢

无器械健身

The design points of voice dialogue system and the importance of multi round dialogue

【暑期每日一题】洛谷 P5886 Hello, 2020!

Dual contractual learning: text classification via label aware data augmentation reading notes

Introduction to JVM stack and heap

This sideline workload is small, 10-15k, free unlimited massage

About the transmission pipeline of stage in spark

VIM简易使用教程

One click shell to automatically deploy any version of redis

Neural networks - use sequential to build neural networks
随机推荐
RuntimeError: mean(): input dtype should be either floating point or complex dtypes. Got Long instead
Kodori tree board
Introduction to JVM stack and heap
神经网络-卷积层
分布式数据库数据一致性的原理、与技术实现方案
最长递增子序列及最优解、动物总重量问题
Neural networks - use sequential to build neural networks
1076 Forwards on Weibo
Pico neo3 handle grabs objects
The index is invalid
洗个冷水澡吧
Basic usage, principle and details of session
[daily question in summer] first time, second time, deal!
JVM栈和堆简介
The design points of voice dialogue system and the importance of multi round dialogue
【硬十宝典目录】——转载自“硬件十万个为什么”(持续更新中~~)
[daily question in summer] function of rogu p3742 UMI
Pico Neo3手柄抓取物体
Neural network - nonlinear activation
解决:Thread 1:[<*>setValue:forUndefinedKey]:this class is not key value coding-compliant for the key *