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
//ArrayListImp.java - Jimmy Kurian | |
import java.util.Iterator; | |
public class ArrayListImp<E> | |
{ | |
private E [ ] items; | |
private int capacity = 2; | |
private int size = 0; |
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
// HelloWorld.cs - Jimmy Kurian | |
using System; | |
public class HelloWorld | |
{ | |
public static void Main() | |
{ | |
Console.WriteLine("Hello, World!"); | |
} | |
} |
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
//Employee.java - Jimmy Kurian | |
public class Employee implements Comparable<Employee> | |
{ | |
private String ssn; | |
private String lastName; | |
private String firstName; | |
public int compareTo(Employee emp) |
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
//Postal.java - Jimmy Kurian | |
import java.util.Scanner; | |
public class Postal | |
{ | |
public int num2; // 10000 digit | |
public int num3; // 1000 digit | |
public int num4; // 100 digit | |
public int num5; // 10 digit |
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
//Instructor.java - Jimmy Kurian | |
public class Instructor extends Person | |
{ | |
private double salary; | |
public Instructor(String n, int byear, double s) | |
{ | |
super(n, byear); | |
salary = s; |
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
//DataSet.java - Jimmy Kurian | |
public class DataSet | |
{ | |
private Comparable minimum; | |
private Comparable maximum; | |
public DataSet() | |
{ | |
maximum = null; |
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
//BankAccount.java - Jimmy Kurian | |
public class BankAccount | |
{ | |
private double balance; | |
public BankAccount() | |
{ | |
balance = 0; | |
} |
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
//Cone.java - Jimmy Kurian | |
public class Cone | |
{ | |
private double r; | |
private double h; | |
public Cone(double aRadius, double aHeight) | |
{ | |
r = aRadius; |
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
//Geometry.java - Jimmy Kurian | |
public class Geometry | |
{ | |
public static double sphereVolume(double r) | |
{ | |
return (4.0 / 3.0) * Math.PI * r * r * r; | |
} |
NewerOlder