Why not just put "$" + input

System.out.println("$ " + input);

If 100is entered then the output would be $ 100