This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
John Valiant wrote:Ok...bases on the hercules.length i want it to print 555555(derived from length).i am afraid you dont get it
The length is just a number (in this case, the value of 6), if you print it, you just get the number 6 printed. If you want to use the value to determine the number of times another number is printed -- well, one option would be to use a loop.