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

In multi-threading how can we ensure that a resource isn't used by multiple threads simultaneously?

1298


What is integer parseint?

974


What is the right data type to represent a price in java?

937


Assume a thread has lock on it, calling sleep() method on that thread will release the lock?

1090


What is the importance of static variable?

1098


What is the char data type?

984


What are the uses of java?

1071


What is the maximum size of list in java?

949


Can we convert stringbuffer to string?

991


Is there any case when finally will not be executed?

941


how to create multithreaded program? : Java thread

938


What is the arraylist in java?

1027


How to create a fecelet view?

980


what is a working thread? : Java thread

1025


What is better- service oriented or batch oriented solutions?

2197