It's not a secret anymore!
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 Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Assignment 1B" Watch "Assignment 1B" New topic

Assignment 1B

Nath Maniedeo

Joined: Feb 15, 2008
Posts: 29
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

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

Joined: Sep 13, 2007
Posts: 3042

nested for loop is one approach

K. Tsang JavaRanch SCJP5 SCJD OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
I agree. Here's the link:
subject: Assignment 1B
It's not a secret anymore!