Results 1 to 2 of 2
- 02-09-2013, 05:28 PM #1
Member
- Join Date
- Jan 2013
- Location
- Texas
- Posts
- 41
- Rep Power
- 0
Very simple question about creating a string line
Good morning all,
I have no idea why I can't find the answer, I am probably searching wrong or something but I want to have a line printed out to create a line of *
so for example: I want a line with 25 * in it.
*************************
And for the life of me I can't remember the syntax
String "*" x 25
I can do it with a for loop, but was trying to see if there was a more efficient way.
I have never done it in Java. I have done it in perl and python but not java.
Please help this old guy who's mind is apparently drawing a blank.
Thanks
Wally
- 02-09-2013, 07:57 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,405
- Blog Entries
- 7
- Rep Power
- 17
Similar Threads
-
Creating a new line
By Huskies in forum New To JavaReplies: 7Last Post: 08-06-2011, 07:49 AM -
Cant compile this simple line!
By Pojahn_M in forum New To JavaReplies: 2Last Post: 07-28-2011, 06:35 PM -
A simple question about converting byte array to unicode string
By Genom in forum New To JavaReplies: 6Last Post: 02-17-2011, 01:22 PM -
30 line simple gui, simple error, need help
By cc11rocks in forum New To JavaReplies: 6Last Post: 02-05-2011, 08:33 PM -
Formatting java command line output - Multi line string
By dricco in forum New To JavaReplies: 2Last Post: 07-02-2010, 02:20 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks