Skip to content

Instantly share code, notes, and snippets.

@bytecodeman
bytecodeman / TemplateForProjects.java
Last active Nov 8, 2018
Template For Java Homework and Projects
View TemplateForProjects.java
/*
* Name:
* Date:
* Course Number:
* Course Name:
* Problem Number:
* Email:
* Short Description of the Problem
*/
@bytecodeman
bytecodeman / ButtonDemo3.java
Created Apr 19, 2018
Rewrite of Chapter 16 ButtonDemo Program
View ButtonDemo3.java
package chapter16;
import javafx.application.Application;
import javafx.stage.Stage;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
View ClockInAction.java
/*
* Eliezer Encarnacion
* Due Date: 04/09/2018
* Course Number: CSC-112-D01
* Course Name: Interm Topic/Java Prgrmng
* Problem Number: HW #8
* Email: eeencarancion0001@student.stcc.edu
* Set Clock Time and Animate
*/
@bytecodeman
bytecodeman / Rational.java
Created Feb 15, 2018
Rational Numbers Project 2/13/2018
View Rational.java
/*
* Rational Number Class
* Prof. A.C. Silvestri
* CSC-112 Intermediate Java
* 02/08/18
*/
public class Rational implements Comparable<Rational> {
private int num;
private int den;
@bytecodeman
bytecodeman / ComplexWithStringConstructor.java
Last active Feb 13, 2018
Complex Number String Constructor Examples (No Regex)
View ComplexWithStringConstructor.java
/*
* Name: Antonio C. Silvestri
* Date: 2/13/2018
* Course: Intermediate Topics in Java Programming (CSC-112)
* Problem: Implement Complex Number String Constructor
*/
import java.util.StringTokenizer;
public class ComplexWithStringConstructor {
@bytecodeman
bytecodeman / Rational.java
Last active Feb 19, 2019
Rational Number Sample Code
View Rational.java
/*
* Rational Number Class
* Prof. A.C. Silvestri
* CSC-112 Intermediate Java
* 02/08/18
*/
public class Rational implements Comparable<Rational> {
final private int num;
final private int den;
@bytecodeman
bytecodeman / Circle.java
Last active Feb 5, 2018
HW2 Circle Assignment Solution
View Circle.java
/*
* Name: Prof. Antonio C. Silvestri
* Date: 2/1/2017
* Course Number:CSC-112
* Course Name: Intermediate Topics in Java Programming
* Email: silvestri@stcc.edu
* Circle Class Definition
*/
public class Circle {
@bytecodeman
bytecodeman / CircleDriver.java
Last active Feb 4, 2018
Circle Driver Code
View CircleDriver.java
/*
* Name: A.C. Silvestri
* Date: 1/31/2018
* Course Number:CSC-112
* Course Name: Intermediate Topics in Java Programming
* Email: silvestri@stcc.edu
* Circle Class Creation/Testing
*/
import java.util.Scanner;
@bytecodeman
bytecodeman / Clock.java
Last active Feb 3, 2018
Clock Project Demo Code by Silvestri
View Clock.java
/*
* Tony Silvestri
* Clock class emulates a normal clock
* 2/2/16
* silvestri@stcc.edu
* CSC-112 Intermediate Java
*/
public class Clock extends Object implements Comparable<Clock> {
private int hr;
You can’t perform that action at this time.