Skip to content

Instantly share code, notes, and snippets.

@azuro
azuro / Employee.java
Created December 13, 2013 11:08
Java - Inheritance
class Employee
{
private String IDNumber;
private String Name;
private String Date;
public Employee(String id, String name, String date)
{
this.setIDNumber(id);
this.setName(name);
this.setDate(date);
@azuro
azuro / GETest.java
Created November 17, 2013 11:26
Sample App demonstrating JSON Parsing and REST.
import java.io.*;
import java.net.*;
import java.util.*;
import static java.lang.System.out;
public class GETest {
static String PLACE = "San Jose,US";
public static HashMap<String,String> CountryNames= new HashMap<>();//You'll learn about these later
private static String getHTML(String urlToRead) {
URL url;
HttpURLConnection conn;
@azuro
azuro / QSales.java
Last active December 27, 2015 09:09
Solved Source for: Quarterly Sales Statistics
/*
Quarterly Sales Statistics
Write a program that lets the user enter four quarterly sales figures for six divisions of a company.
The figures should be stored in a two-dimensional array. Once the figures are entered, the
program should display the following data for each quarter:
• A list of the sales figures by division
• Each division’s increase or decrease from the previous quarter (this will not be displayed for