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
public class DataParser { | |
public final static int XML_FORMAT = 1; | |
public final static int CSV_FORMAT = 2; | |
//stub for extended class | |
public final static int JSON_FORMAT = 3; | |
private String iString; | |
private Destructurer init; | |
private String iRoot; |
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.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.BufferedReader; | |
import java.io.DataInputStream; | |
import java.io.DataOutputStream; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.FileReader; | |
import java.io.InputStreamReader; |
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.text.NumberFormat; | |
import java.util.Locale; | |
//------------------------------------------------------ | |
public class Main { | |
final static int MAT_SIZE = 50; | |
// ------- proof of correctness -------------- | |
public static void main(String[] args) throws Exception { | |
int r, randRow, randCol; |
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.util.ArrayList; | |
public class Console { | |
protected String[] ENTRY = {"Latitude", "Longitude", "City", "State"}; | |
public Console(){ /*empty on purpose*/ } | |
public void run(){ | |
DataHandler function = new DataHandler("Coordinate.xml"); |
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.text.NumberFormat; | |
import java.util.ArrayList; | |
import java.util.Locale; | |
import java.util.Random; | |
public class Foothill { | |
public static final int ARRAY_SIZE = 1000000; | |
public static void main(String[] args) { | |
Integer[] arrayOfInts1 = new Integer[ARRAY_SIZE]; |
NewerOlder