public class Solution { public static void Expectation (int n) { System.out.println("I will earn $" + n + " per hour"); } public static void main(String[] args) throws Exception { //write your code here BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); System.out.println("Enter amount"); String amount = r.readLine(); int n = Integer.parseInt(amount); Expectation(n); } }