File: Create a program for which out put wil be the same program



import java.util.*;
import java.io.*;
class Syam
{
public static void main(String args[])throws Exception
{
PrintWriter pw=new PrintWriter(System.out,true);
Scanner sc=new Scanner(new File("Syam.java"));
String s=null;
try
{
while((s=sc.nextLine())!=null)
{
pw.println(s);
}
}
catch(Exception e)
{
}
}
}


Responses

0 Respones to "File: Create a program for which out put wil be the same program"

Post a Comment

 

Recent Comments

Popular Posts

Return to top of page Copyright © 2010 | Platinum Theme Converted into Blogger Template by HackTutors