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?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

Explain implementation and how is it different from conversion?

1085


How big is a pointer?

1031


design an lru cache in java?

1005


How many types of threads are there in java?

1061


Name few java util classes introduced with java 8 ?

917


What are the differences between heap and stack memory in java?

1058


What is a treeset in java?

1040


Difference between object and reference?

1174


What happens if constructor is private?

1030


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

1017


What is string array?

1067


How can I become a good programmer?

983


What is array size in java?

961


What are wrapped classes in java programming?

1056


Who found java?

981