MCPcopy Create free account
hub / github.com/MolinDeng/Princeton-algs4 / main

Method main

LabEnv/10Lab/MoveToFront.java:54–61  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

52 // if args[0] is "-", apply move-to-front encoding
53 // if args[0] is "+", apply move-to-front decoding
54 public static void main(String[] args) {
55 if (args[0].equals("-")) {
56 encode();
57 }
58 else if (args[0].equals("+")) {
59 decode();
60 }
61 }
62}

Callers

nothing calls this directly

Calls 3

encodeMethod · 0.95
decodeMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected