Just curious... I've got a snippet of code I'm trying to put together, and what I'm trying to get it to do is to print out the word "yes" exactly when i ends in the digit 4, or j ends in the digit 7, or both. I know my if statement is totally off, but I thought I'd give it a shot anyway. lol Doesn't hurt to try, even though I know I'm way off base on this one.
Here's what I've written up so far:
for (int i=0; i < 100; i++) for (int j=0; j < 100; j++) if (i == 4 && j == 7) System.out.println ("yes");
Many thanks, as always :)