Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

When should the method invokelater() be used?

1019


How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?

1449


Explain different types of wrapper classes in java?

1024


Does java isempty check for null?

998


Explain purpose of sleep() method in java?

1120


What is type safety in java?

950


Can java list contain duplicates?

1011


What is the default value of local and global variables?

1097


What is the list interface in java programming?

1117


What is skeleton and stub?

1088


What will happen when using pass by reference in java?

989


What is the biggest integer?

1052


What are access specifiers available in java?

1007


How do you do descending order in java?

968


What best practices should you follow while writing multithreaded code in java?

1071