Answers

2015-03-11T20:50:15+05:30
Import java.io.*
class Abc
 {
BufferedReader br=new BufferedReader( new InputStreamReader (System.in));
public void work ()throws IOException
{  String x;
System.out.println("Enter Your name");
x=br.readline();
 for (i=1;i<=5;i++)
   System.out.println(x);
}
}

 
0
  • Brainly User
2015-03-11T22:50:39+05:30
/* * First Java program, which says "Hello, world!" */ public class Hello { // Save as "Hello.java" public static void main(String[] args) { System.out.println("Hello, world!"); // print message } }
0