Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
If I wanted to place break statements instead of the found variable in the following code, where in the code do I place it and what do I type and what do I delete to make this program work. The output right now is dots going through the screen and then it says Done verification. The output should still be the same but with break statements in the code. Thanks. public class BreakIt for (int n = 0; n < 2000; n++) /* Some strange method */ for (int j = 3; !found && j < 1000; j = j + 3) if (i == j) if (i % 3 == result) static int g(int i) for (int j = 3; !found && j < 1000; j = j + 3) if (i == j) if (i % 3 == result)
Replies: |
Sponsored Links
|