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

How do you remove all elements from an arraylist in java?

1090


For class CFoo { }; what default methods will the compiler generate for you>?

1113


Can we have two methods in a class with the same name?

1108


Can we create an object if a class doesn't have any constructor ( not even the default provided by constructor ) ?

1130


what do you mean by classloader?

1154


Write a program to find maximum and minimum number in array?

1043


What are the parts of methodology?

1030


Why static functions are used?

1141


Can we overload final method in java?

1030


Mention the default values of all the elements of an array defined as an instance variable.

1030


Explain the protected field modifier?

1147


What causes memory leaks in java?

978


What is set string?

1287


How do you break a loop?

1029


How to create a fecelet view?

1037