how to print the below in java?thanks in advance....
*
* *
* *
* *
*

Answer Posted / venkat

In the above program 4th line from last remove "\n"
ie. shoule be System.out.println("")

below is output:


*
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
*

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string value?

614


How many times finalize method will be invoked? Who invokes finalize() method in java?

553


How do you convert an int to a double in java?

573


What is identifier with example?

543


What exactly is java?

490






Can we execute a program without main?

513


What is the difference between jvm and jre? What is an interface?

524


What is the original name of java?

516


Does java isempty check for null?

550


What are aggregate functions explain with examples?

501


What is the benefit of abstract class?

495


Is it possible to use string in the switch case?

531


Can final class have constructor?

479


Can we rethrow the same exception from catch handler?

541


What is the difference between replace and replace all?

448