ok,
so I want to write a test that will ask the user to input an int, and then output it to DOS in java.
how do I do this? I use I/O to do it right?
is it something like:
import java.io.*;
class test
{
public void BufferedReader(Reader in)
{
BufferedReader in = new BufferedReader(new FileReader());
}
}
I'm reading the java docs, but this is all I can come up with. am I even close?? buffered Reader is what asks for the input rigt? how do I make it come out?
help help. just a simple concept.
so I want to write a test that will ask the user to input an int, and then output it to DOS in java.
how do I do this? I use I/O to do it right?
is it something like:
import java.io.*;
class test
{
public void BufferedReader(Reader in)
{
BufferedReader in = new BufferedReader(new FileReader());
}
}
I'm reading the java docs, but this is all I can come up with. am I even close?? buffered Reader is what asks for the input rigt? how do I make it come out?
help help. just a simple concept.