Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  Ideone
Language: JAVA
Code:
import java.util.*;
import java.lang.*;
import java.io.*;
 
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
     public static void main (String[] args) throws java.lang.Exception
     {
          file f = new file("car.txt");
          printwriter out= new printwriter(new bufferedwriter(new filewriter(f, true)));
 
          Scanner scan= new Scanner(System.in);
          for(int i=0;i<3; i++){
          out.println(scan.nextline());}
          out.close();
          // your code goes here
     }
}     
Comments: