This file contains hidden or 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
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); |
This file contains hidden or 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
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; |
This file contains hidden or 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
/* | |
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 |