import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); System.out.print("لطفاً سن خود را وارد کنید: "); String age = reader.readLine(); System.out.println("سن شما: " + age); } }