X

Stanford CS106a Assignment 2, Problem 4 – Target – Part 1

The problem is as follows: Create a figure that is simply three GOval objects, two red and one white, drawn…

coltrinit

Stanford cs106a, Assignment 2; Problem 3. – FindRange – Part 2

After re-reading the instructions for these sets of problems, I found that I should replace multiple statements of code used…

coltrinit

Stanford cs106a, Assignment 2; Problem 3. – FindRange – Part 1

The instructions are to write a ConsoleProgram that reads in a list of integers, one per line, until a sentinel…

coltrinit

Stanford cs106a Assignment 2, Problem 2 – Hailstone sequence

Here is my answer to the hailstone sequence problem. The problem is as follows: Pick some positive integer and call…

coltrinit

Stanford cs106a Assignment 2, Problem 1 – PythagoreanTheorem

Below is my answer for Problem 1, Assignment 2: The question asks, By using the Pythagorean Theorem, calculate the value…

coltrinit

“For” loop examples

A few for loop examples: General form:  for (init; condition; step) { statements } init done once at start of…

coltrinit

Eclipse IDE Tips and Tricks

I wish I had know about these a couple weeks ago, but anyway here are a few tips and tricks…

coltrinit

Object Reference and Arrays

The standard eight primitive variable types are: boolean char byte short int long float double a mnemonic to remember this…

coltrinit

Stanford’s CS106a Programming Methodology Courses

I've been studying the free Standford CS106a lectures for some time now on YouTube - Playlist Here - and have been following…

coltrinit

Java Variables

Java variables come in two types: Primitive Object Reference Primitives hold fundamental values (simple bit patterns including integers, Boolean, and…

coltrinit