Professional Documents
Culture Documents
import java.io.*;
import java.util.*;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
class CreateFile
{
public static void main(String[] args) throws IOException
{
// Type your code here
Scanner sc=new Scanner(System.in);
String s=sc.nextLine();
try
{
BufferedWriter bw=new BufferedWriter(new FileWriter("Hello.txt"));
bw.write(s);
bw.close();
//System.out.print(len);
if(Character.isAlphabetic(j))
secount++;
System.out.println((scount+1)+" "+(secount));
}
catch(IOException e)
{
System.out.println(e);
}
}