how to print the below in java?
* *
* *
*
* *
* *

Answer Posted / kickme

public static void main (String arg[]) {
System.out.println(" * * ");
System.out.println(" * * ");
System.out.println(" * ");
System.out.println(" * * ");
System.out.println(" * * ");
}

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can an interface be final?

541


Why singleton class is used in java?

566


What is formatted output in java?

497


What is difference between static variable and global variable?

546


Why do we need array in java?

530






Explain the difference between abstract class and interface in java?

535


What is classpath?

547


How to sort an unsorted array in java?

608


Is nan false?

531


How we create object in copy constructor?

640


Do you need to import math in java?

558


What is parseint?

529


What is the difference between java applets and applications?

564


How do you use substring in java?

544


What are peerless components?

616