Create Decode ways.java