This file contains 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
//TicTacToeBoard.java - Jimmy Kurian | |
class TicTacToeBoard { | |
public static void main(String[] args) { | |
System.out.println("+---+---+---+"); | |
System.out.println("| | | |"); | |
System.out.println("+---+---+---+"); | |
System.out.println("| | | |"); | |
System.out.println("+---+---+---+"); | |
System.out.println("| | | |"); |
This file contains 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
//Sum10.java - Jimmy Kurian | |
class Sum10{ | |
public static void main(String[] args) { | |
int s = 1+2+3+4+5+6+7+8+9+10; | |
System.out.println(s); | |
} | |
} |
This file contains 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
//SavingsAccount.java - Jimmy Kurian | |
public class SavingsAccount | |
{ | |
private double balance; | |
private double interest; | |
public SavingsAccount() | |
{ | |
balance = 0; |
This file contains 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
//OlympicRingComponent.java - Jimmy Kurian | |
import javax.swing.JComponent; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.Color; | |
public class OlympicRingComponent extends JComponent | |
{ |
This file contains 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 double sum; | |
private int count; | |
private int largest; | |
private int smallest; | |
This file contains 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
//Card.java - Jimmy Kurian | |
public class Card | |
{ | |
private String denom; | |
private String suite; | |
private String String1; | |
private String String2; | |
public Card(String s1) |
This file contains 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
//CheckerBoard.java - Jimmy Kurian | |
import javax.swing.*; | |
import java.awt.Graphics; | |
import java.awt.Color; | |
public class CheckerBoard extends JFrame | |
{ | |
public void paint(Graphics g) |
This file contains 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
#RegularExpressions.py - Jimmy Kurian | |
import re | |
for test_string in ['555-1212', 'ILL-EGAL']: | |
if re.match(r'^\d{3}-\d{4}$', test_string): | |
print test_string, 'is a valid US local phone number' | |
else: | |
print test_string, 'rejected' |
This file contains 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.py - Jimmy Kurian | |
class BankAccount(object): | |
def __init__(self, initial_balance=0): | |
self.balance = initial_balance | |
def deposit(self, amount): | |
self.balance += amount | |
def withdraw(self, amount): | |
self.balance -= amount | |
def overdrawn(self): |
OlderNewer