From f00fcc2c1c50370a1c92ffecd74e41581b0284c0 Mon Sep 17 00:00:00 2001 From: sarvottam Date: Sat, 18 Aug 2018 23:37:35 +0530 Subject: [PATCH] Adding Sarvottam.java File --- Sarvottam.java | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Sarvottam.java diff --git a/Sarvottam.java b/Sarvottam.java new file mode 100644 index 0000000..26cf6d9 --- /dev/null +++ b/Sarvottam.java @@ -0,0 +1,59 @@ +import java.io.*; + +import java.util.*; + +import java.util.regex.*; + +class Sarvottam +{ +public static void main(String args[]) + +{ Scanner sc=new Scanner(System.in); + +int n; + +String text=sc.nextLine(); + +n=Integer.parseInt(sc.nextLine()); + +pass(text,n); + +} + +public static void pass(String t,int n) + +{ +String temp=t; +Scanner sc=new Scanner(System.in); +int i; +String a[]=new String[100]; + +ArrayListres = new ArrayList<>(); + +for(i=0;i