teaching machines

TextGetter

For Homework 3, I had decided to take the first few texts from TFLN and show them on my application.  To get the texts, I parsed the HTML that I had pulled from the homepage of the website. Because the website updates on its own, each time you open the application, you will get the […]

CS 145 Lecture 23 – Composing with objects

Agenda static vs. non-static designing a Flashlight design a room for a text adventure Code Stopwatch.java package lecture; public class Stopwatch { /** Time at which stopwatch is started */ private long startTime; /** Time at which stopwatch is stopped */ private long stopTime; /** * Starts stopwatch. */ public void start() { startTime = […]

CS 145 Homework 4 – due before 12/15

See the PDF. When you download speccheck_hw4.jar, make sure the filename ends in “.jar”.

CS 145 Lecture 22 – Designing objects

Agenda writing a Stopwatch objects hide information managing a “dungeon” with objects writing a flashlight Code Stopwatch.java package lecture; public class Stopwatch { /** Time at which stopwatch is started */ private long startTime; /** Time at which stopwatch is stopped */ private long stopTime; /** * Starts stopwatch. */ public void start() { startTime […]

CS 491 Lecture 21 – Bluecheckers

Agenda explore GLSurfaceView hook GLSurfaceView.Renderer callbacks up to our C++ renderer incorporate UI events 3-D on Android Android offers a special GLSurfaceView for fast rendering. It also provides Java bindings for the OpenGL library. This added layer can reduce performance, so ultimately we’re going to want to use our low-level C++ code to do all […]