Last active
August 29, 2015 14:07
-
-
Save NotInControl/aa40ea79e4a5a78663a8 to your computer and use it in GitHub Desktop.
2168-FRCJavaCourse2015-class1
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 HelloWorld | |
{ | |
public static void main(String[] args) | |
{ | |
int kevin = 2348; | |
double numberToIncrement = -45.3; | |
System.out.println(kevin); | |
System.out.println(kevin + numberToIncrement); | |
double myFraction = 0.5; | |
String sentance = "Anything in the world"; | |
System.out.println(myFraction + numberToIncrement); | |
//Continue to code assignments | |
int numOfCookies = 5; //variable declaration | |
System.out.println(numOfCookies); | |
System.out.println("I just baked 10 more cookies"); | |
numOfCookies = 15; | |
System.out.println(numOfCookies); | |
int radius = 23; | |
final double PI = 3.14159; | |
//Calculates Circumference | |
System.out.println(2*radius*PI); | |
System.out.println(2*radius*PI); | |
final String MY_NAME; | |
final int MY_AGE; | |
final int NUM_OF_DAYS_PER_WEEK = 7; | |
final double PENNIES_PER_DOLLAR = 100.0; | |
//plus operator | |
System.out.println(5 + 6* 9); | |
System.out.println(sentance + " And I am a Falcon"); | |
System.out.println("The circumference of a circle with radius " + radius + " is: " + 2*radius*PI); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment