/** * Counts the number of 'a's in text entered by the user. */ import java.util.Scanner; public class Encode { public static void main(String[] args) { Scanner in = new Scanner(System.in); System.out.println("Enter a single word."); String input = in.next(); System.out.print("The coded word: "); } }