adding a dumb system io piping thingy
This commit is contained in:
parent
5f75a83bd4
commit
0389c1f970
14
src/com/meatballhat/learningjava/CleanPipe.java
Normal file
14
src/com/meatballhat/learningjava/CleanPipe.java
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
package com.meatballhat.learningjava;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
|
|
||||||
|
|
||||||
|
public final class CleanPipe {
|
||||||
|
|
||||||
|
public static void main(String[] argv) throws IOException {
|
||||||
|
int c;
|
||||||
|
while((c = System.in.read()) != -1) {
|
||||||
|
System.out.write(c);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user