import java.io.*;
class file3
{
public static void main(String args[]) throws IOException
{
FileInputStream f1;
int i;
FileOutputStream f2;
try
{
f1= new FileInputStream(args[0]);
}catch(Exception e)
{
}
try
{
f2= new FileOutputStream(args[1]);
}catch(Exception e)
{
}
try{
do
{
i=f1.read();
if(i!=-1)
f2.write(i);
}while(i!=-1);
}catch(Exception e){};
do
{
i=f1.read();
System.out.print((char)i);
}while(i!=-1);
}
}
it is giving error that "f1 must not be initialized" and same f2 can not be ...please solve this error. when i run from CMD then it says file not found. it is not even geeting this file. i have done everything.it is not catching that there is file of this name