Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyFirstJavaProg {
- public static void main(String args[]) {
- http://www.javacoffeebreak.com/java101/java101.html
- System.out.println("Hello World!");
- }
- }
- sentence: for(final Sentence sentence: paragraph) {
- for(final String word: sentence) {
- // do something
- continue sentence;
- }
- }
- `private static void testByFactoring() {
- {
- primes: for (int ctr = 0; ctr < m_toFactor.length; ctr++) {
- int toTest = m_toFactor[ctr];
- for (int ctr2 = 0; ctr2 < m_divisors.length; ctr2++) {
- // max (int) Math.sqrt(m_numberToTest) + 1 iterations
- if (toTest != m_divisors[ctr2]
- && toTest % m_divisors[ctr2] == 0) {
- continue primes;
- }
- } // end of the divisor loop
- } // end of primes loop
- } // method`
- nextItem: for(CartItem item : user.getCart()) {
- nextCondition : for(PurchaseCondition cond : item.getConditions()) {
- if(!cond.check())
- continue nextItem;
- else
- continue nextCondition;
- }
- purchasedItems.add(item);
- }
Add Comment
Please, Sign In to add comment