wood burning stoves 2.0*
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
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: 2234
    
    7

nested for loop is one approach


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Assignment 1B
 
Similar Threads
Hundred part a
BILL IS HARD TO PLEASE..lol
Assignment Log
Calculation
I submitted Java Assignment 1a, 1b