package com.codegym.task.task03.task0318;
/*
Plan to conquer the world
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter your name :-");
String name = b.readLine();
// System.out.println("Enter years :-");
// int nyear = Integer.parseInt(b.readLine());
System.out.println(name);
// System.out.println(name + " will take over the world in" + nyear + " years. Mwa-ha-ha!");
}
}
output:
Enter your name :-
null
package com.codegym.task.task03.task0318;
/*
Plan to conquer the world
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
System.out.println("Enter your name :-");
String name = b.readLine();
// System.out.println("Enter years :-");
// int nyear = Integer.parseInt(b.readLine());
System.out.println(name);
// System.out.println(name + " will take over the world in" + nyear + " years. Mwa-ha-ha!");
}
}