ok basically i need to write a program that will replace normal words in a sentence with pirate words. the trick is it needs to be able to take two word phrases. i went about this two different ways: 2d array and hashmap. both have the problem of translating a phrase with two words. im running out of time and need help bad.

HASHMAP WAY:
Code:
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
...