Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Cattle Drive and the fly likes Code Question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Code Question" Watch "Code Question" New topic

Code Question

Nath Maniedeo

Joined: Feb 15, 2008
Posts: 29
Hi, as recommeded by teachers...I can't get his code to work:

for loop starting at zero
if the current number of names is the same as namesPerLine
create a new line
print name
in playing with the code, it either prints only one line of names that will fit on a line OR prints it straight downwards...
Nath Maniedeo

Joined: Feb 15, 2008
Posts: 29
wait, I think I almost have it.
I agree. Here's the link:
subject: Code Question
Similar Threads
Default values
using Maha's trick for the hairy ++ ?
Cannot find NullPointerException
XML Parsing problem
Creating Objects