当前位置:网站首页>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 ");
}
边栏推荐
- AssertionError assert I.ndim == 4 and I.shape[1] == 3
- STM32扩展板 温度传感器和温湿度传感器的使用
- Construction of Meizhou nursing laboratory: equipment configuration
- 最长递增子序列及最优解、动物总重量问题
- Leecode question brushing record 1310 subarray XOR query
- 【暑期每日一题】洛谷 P1629 邮递员送信(未完待续...)
- 【暑期每日一题】洛谷 P5886 Hello, 2020!
- Basic exercise of test questions hexadecimal to decimal
- Section 27 remote access virtual private network workflow and experimental demonstration
- 神经网络的基本骨架-nn.Moudle的使用
猜你喜欢

Dede collection plug-in does not need to write rules

Neural network - nonlinear activation

Fitness without equipment

技术分享| 融合调度中的广播功能设计

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

分布式-总结列表

分布式数据库数据一致性的原理、与技术实现方案

Common methods in transforms

神经网络-使用Sequential搭建神经网络

Pytorch(一) —— 基本语法
随机推荐
Leecode question brushing record 1310 subarray XOR query
AssertionError assert I.ndim == 4 and I.shape[1] == 3
Common UNIX Operation and maintenance commands of shell
【暑期每日一题】洛谷 P2026 求一次函数解析式
RuntimeError: mean(): input dtype should be either floating point or complex dtypes. Got Long instead
Kodori tree board
Use and modification of prior network model
神经网络的基本骨架-nn.Moudle的使用
Talk about testdeploy
Shell analysis server log command collection
解决:拖动xib控件到代码文件中,报错setValue:forUndefinedKey:this class is not key value coding-compliant for the key
【暑期每日一题】洛谷 P5740【深基7.例9】最厉害的学生
STM32 extended key scan
js解决浮点数相乘精度丢失问题
Basic usage, principle and details of session
【暑期每日一题】洛谷 P5886 Hello, 2020!
线程安全问题
CF1638E. Colorful operations Kodori tree + differential tree array
Leecode record 1351 negative numbers in statistical ordered matrix
2022-02-15 (399. Division evaluation)