This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Continents { | |
public static void main(String[] args) { | |
//This little program takes an inputted continent number and matches it to a text string of the largest city and country on that continent | |
//Here's that continent number | |
int continent = 4; | |
switch (continent) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Magic { | |
public static void main(String[] args) { | |
// This little program does a bunch of math witchery to always return the same number no matter what myNumber is | |
int myNumber = 12; | |
int stepOne = (myNumber * myNumber); | |
int stepTwo = (stepOne + myNumber); | |
int stepThree = (stepTwo / myNumber); | |
int stepFour = (stepThree + 17); |