Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Cattle Drive and the fly likes print number of time without a loop? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Reply Bookmark "print number of time without a loop?" Watch "print number of time without a loop?" New topic
Author

print number of time without a loop?

Nath Maniedeo
Greenhorn

Joined: Feb 15, 2008
Posts: 29
is it possible to print out text the same amount of times as stored in a variable without using a loop?
Katrina Owen
Sheriff

Joined: Nov 03, 2006
Posts: 1334
    
  11
Why do you want to avoid the loop?
[ March 16, 2008: Message edited by: Katrina Owen ]
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9033
    
  10
Assignment Java-1 (Hundred)
Purpose: To learn how to follow the style guide, how to get the argument from the command line, how to use variables, how to concatenate strings, how to use a loop effectively, and how to output to the screen (standard out).


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: print number of time without a loop?
 
Similar Threads
Optimize - Assignment 1
Printing a String object without using loop
printing a string
How tp print Hello World on the screen many times without using any loops!!?
How to print ASCII values of all characters?