This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 1367
    
  18
Well, I guess each time you print that something you could increment a counter variable.
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2985
    
    9

nested for loop is one approach


K. Tsang JavaRanch SCJP5 SCJD OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
 
Have you checked out Aspose?
 
subject: Assignment 1B
 
It's not a secret anymore!