Here is my code but it doesnot work?????

BufferedReader reader= new BufferedReader(new InputStreamReader(System.in)); 
String name=reader.readLine(); 
String number=reader.readLine(); 
int a= Integer.parseInt(number); 
System.out.println(name+" will conquer the world in "+a+" years. Bwahaha!");

I dont understand why it doesnot pass the test.

asked 26 Feb '15, 12:18

Reem's gravatar image

Reem
39118
accept rate: 0%

edited 26 Feb '15, 12:27

Diego%20Carleone's gravatar image

Diego Carleone ♦♦
7616


There already was an answer to such question. Check it here: http://help.javarush.net/questions/5/level03lesson08task01

link

answered 26 Feb '15, 12:41

Diego%20Carleone's gravatar image

Diego Carleone ♦♦
7616
accept rate: 83%

Same thing!!! please fix this bug!!

link

answered 27 Feb '15, 10:28

Pidstrela's gravatar image

Pidstrela
114
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×16

Asked: 26 Feb '15, 12:18

Seen: 1,359 times

Last updated: 27 Feb '15, 10:28