MCPcopy Create free account
hub / github.com/Tiwarishashwat/InterviewCodes / main

Method main

RabinKarp.java:4–14  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

2public class RabinKarp {
3
4 public static void main(String args[])
5 {
6 Scanner obj = new Scanner(System.in);
7 System.out.println("Enter input string");
8 String input=obj.nextLine();
9 System.out.println("Enter input string");
10 String pattern=obj.nextLine();
11 rabinKarp(input,pattern);
12
13
14 }
15 public static int rabinKarp(String str, String pattern)
16 {
17

Callers

nothing calls this directly

Calls 1

rabinKarpMethod · 0.95

Tested by

no test coverage detected