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 .
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");
+ 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--;
}
0
any more ans
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
- 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