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 args [] in java?

540


What are static methods?

576


How do I enable java in safari?

549


Can you make a constructor final in Java?

628


What is early binding and late binding in java?

595






What is Applet Stub Interface ?

1968


What is an interface in java?

563


What is meant by string is immutable?

517


Differences between external iteration and internal iteration?

577


What is namespace in java?

545


How many types of voids are there?

535


Does java trim remove newline?

540


What is the difference between sleep and wait in java?

513


define the terminology association.

619


Write a program to calculate factorial in java?

583