Skip to content

Instantly share code, notes, and snippets.

View julia81's full-sized avatar

Julia MacDonald julia81

  • 13080
View GitHub Profile
@julia81
julia81 / 0_reuse_code.js
Last active August 29, 2015 14:20
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@julia81
julia81 / AgeCalculator.java
Created April 29, 2015 15:42
Age calculator which will tell the user how old they are after the input their age. Programming in Java AgeCalculator.java
import java.util.*;
import javax.swing.*;
public class AgeCalculator
{
public static void main(String[] args)
{
GregorianCalendar now = new GregorianCalendar();
int nowYear; // Current Year "nowYear"
int birthYear; //User inputs their birthYear
int yearsOld; // Stores age as yearsOld