0

Related to java program

in java program i want to write something in the start of a line and end of that line . How can i do it .

12th Aug 2017, 4:32 PM
richa priya
richa priya - avatar
5 Respostas
+ 10
System.out.print("Hi"); for(int i = 0; i < 35; i++) { // 35 can be modified according to the width of the console. System.out.print(" "); } System.out.print("Bye");
12th Aug 2017, 4:39 PM
Dev
Dev - avatar
+ 8
int limit = 50; while(limit != 0) { System.out.println("Hi"); for(int j = 0; j < 35; j++) { System.out.print(" "); } System.out.println("Bye"); limit--; }
12th Aug 2017, 5:30 PM
Dev
Dev - avatar
0
any more ans
12th Aug 2017, 4:52 PM
richa priya
richa priya - avatar
0
I want to write 50 line do this same thing adding something in the start of each individual line n also for end of each line
12th Aug 2017, 5:10 PM
richa priya
richa priya - avatar
- 1
dayve can u plz help me once again I want to do this same thing in each n every line how can I done it in java
12th Aug 2017, 5:09 PM
richa priya
richa priya - avatar