From 42e2340b6e5891a11d5899655bed525e89b88c9a Mon Sep 17 00:00:00 2001 From: Pankaj Thawani Date: Sat, 18 Aug 2018 00:18:26 +0530 Subject: [PATCH 1/2] Initial Commit --- PatternMatching.txt | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 PatternMatching.txt diff --git a/PatternMatching.txt b/PatternMatching.txt new file mode 100644 index 0000000..6aadac0 --- /dev/null +++ b/PatternMatching.txt @@ -0,0 +1,37 @@ +import java.io.*; +import java.util.*; +import java.util.regex.*; +class PatternMatching +{ + public static void main(String args[]) + { + Scanner sc=new Scanner(System.in); + int n; + String text=sc.nextLine(); + n=Integer.parseInt(sc.nextLine()); + pattern(text,n); + } + public static void pattern(String text1,int n) + { + String temp=text1; + Scanner sc=new Scanner(System.in); + int i; + String a[]=new String[100]; + ArrayListarraylist = new ArrayList<>(); + for(i=0;i Date: Sat, 18 Aug 2018 00:25:51 +0530 Subject: [PATCH 2/2] Rename PatternMatching.txt to PatternMatching.java --- PatternMatching.txt => PatternMatching.java | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename PatternMatching.txt => PatternMatching.java (100%) diff --git a/PatternMatching.txt b/PatternMatching.java similarity index 100% rename from PatternMatching.txt rename to PatternMatching.java