This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Cattle Drive and the fly likes if Statements the best? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "if Statements the best?" Watch "if Statements the best?" New topic
Author

if Statements the best?

Nath Maniedeo
Greenhorn

Joined: Feb 15, 2008
Posts: 29
hi- I'm working figuring out a way to do what the teachers told me to do...I still need a further hint:

I'm trying to Check how many of a particular name will fit on a line of max 80 characters (after already getting the length of the name) for Assignment 1B

all I can think of are a bunch of IF statements and maybe something with the % operator.

(thank you teachers for helping before and now.)
Marilyn de Queiroz
Sheriff

Joined: Jul 22, 2000
Posts: 9044
    
  10
How about dividing the length of the line by the length of the name?


JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Nath Maniedeo
Greenhorn

Joined: Feb 15, 2008
Posts: 29
yes, I'm doing that...I've made some progress in trying things, I think I just need to figure out how to print the right thing now...I'll get back to you with a more defined question later if need be...thank you so much!
 
Consider Paul's rocket mass heater.
 
subject: if Statements the best?
 
Similar Threads
java is for idiots and C++ is for geniuses ??
Stopping embedded sql
Frame call a JFrame
MP3 on J2ME??
money vs. barter