The code below works in Intellij, but it doesn't work when I cut and pasted into the task with code gym....no idea why it works one place and not the other.
package com.codegym.test;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Solution
{
public static void main (String[] args) throws IOException
{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String n = reader.readLine();
System.out.println("I will earn $"+ n +" per hour.");
}
}
package com.codegym.test;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Solution
{
public static void main (String[] args) throws IOException
{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String n = reader.readLine();
System.out.println("I will earn $"+ n +" per hour.");
}
}