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 Assignment 1B 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 "Assignment 1B" Watch "Assignment 1B" New topic
Author

Assignment 1B

Nath Maniedeo
Greenhorn

Joined: Feb 15, 2008
Posts: 29
HI-
Ok, I've made Assignment 1b work using a complex calculation, but I think the teacher would like me to find a simplier calculation to use...I'm working on it, in the mean time, another way I thought of:

does anyone know the method to check how many times something was printed to the console?
Katrina Owen
Sheriff

Joined: Nov 03, 2006
Posts: 1357
    
  17
Well, I guess each time you print that something you could increment a counter variable.
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2229
    
    7

nested for loop is one approach


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
 
 
subject: Assignment 1B
 
Similar Threads
Hundred part a
BILL IS HARD TO PLEASE..lol
Assignment Log
Calculation
I submitted Java Assignment 1a, 1b