
Hi guys, My professor used input and output statements in a different way.. She didnt used System.out.println(); instead she used in.readint() out.writeln() commands to read input and print output. she created two new objects directly to use this statements.
/* input and output objects */ input in = new input(); output out = new output();
When I am using this, it is showing an error."cannot find symbol..input" So,i want to know the header file which gives me the access to this read and writeln statements directly.
or
is there any other solution for this???
Thank you.

import java.io.*;
class InputOutput
{
public static void main(String[] args) throws Exception
{
BufferedReader br=new BufferedReader(new FileReader("data.txt"));
BufferedWriter bw=new BufferedWriter(new FileWriter("new.txt"));
String st="";
while((st=br.readLine())!=null){
bw.write(st);
bw.newLine();
}
bw.close();
}
}
For more information, visit the following link:
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.