Create PlayFair Cipher.java

If the word comes out like"box",the cipher doesn't work properly.How to fix this?