mirror of
https://github.com/buger/goreplay.git
synced 2024-04-21 12:32:02 +00:00
27 lines
598 B
Java
27 lines
598 B
Java
import java.io.BufferedReader;
|
|
import java.io.IOException;
|
|
import java.io.InputStreamReader;
|
|
|
|
public class echo {
|
|
public static void main(String[] args) {
|
|
if(args != null){
|
|
for(String arg : args){
|
|
System.out.println(arg);
|
|
}
|
|
|
|
}
|
|
|
|
BufferedReader stdin = new BufferedReader(new InputStreamReader(
|
|
System.in));
|
|
String line = null;
|
|
|
|
try {
|
|
while ((line = stdin.readLine()) != null) {
|
|
|
|
System.out.println(line);
|
|
|
|
}
|
|
} catch (IOException e) {
|
|
}
|
|
}
|
|
} |