MCPcopy Create free account
hub / github.com/careercup/ctci / main

Method main

java/Chapter 1/Question1_8/Question.java:23–31  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

21 }
22
23 public static void main(String[] args) {
24 String[][] pairs = {{"apple", "pleap"}, {"waterbottle", "erbottlewat"}, {"camera", "macera"}};
25 for (String[] pair : pairs) {
26 String word1 = pair[0];
27 String word2 = pair[1];
28 boolean is_rotation = isRotation(word1, word2);
29 System.out.println(word1 + ", " + word2 + ": " + is_rotation);
30 }
31 }
32
33}

Callers

nothing calls this directly

Calls 1

isRotationMethod · 0.95

Tested by

no test coverage detected