Intro to Java

Course Home
Syllabus
Reflections


Related Links

Announcements

October 12, 2019

This week we're going to learn about pair programming and get started on a project that will teach you how to:

  • Control the movement of actors with the keyboard with if-statements
  • Remove actors from the world and write methods
  • Play sounds
  • Make randomly moving enemies

Types and values

There are different types of information. One type of information we've seen

JoC #4 Vocabulary

Today's Kahoot! will include vocabulary from last week plus three new ones

method call

A request sent to an object to perform an action.

 

argument

Information passed to a method.

 

method definition

Code that describes the actions to take when a method call is made.

 

Quizlet

Here is a Quizlet with vocabulary from last week and this week. Use it to get ready for Kahoot! Try out the Shuffle option with the flash cards or choose another study mode to make sure you really know the terms!

The Crab Tutorials

Pair programming will be based on the following tutorials:

October 5, 2019

The Greenfoot environment is designed to make it easier you to see the relationships between classes, objects and methods. This will help you to read and write Java code more effectively. It will also help you make use of Greenfoot classes and objects to develop games and animated stories.

Today we will:

  • Review the vocabulary words from JoC #3
  • Play a name game with the vocabulary words
  • Play Kahoot!
  • Have an individual work period. If you complete JoC #4 today, you can:
    • Customize your project by changing images, class names, or class methods, or
    • Go on to later JoC videos, or
    • Develop a scenario of your own design
  • Write reflections

If we have time, we'll watch a video on pair programming to prepare for next week's pair programming work.

JoC #3 Vocabulary

Review terms from last week to prepare for Kahoot!

class

Used to create objects.

object

An instance of a class. Many of these can be created from one class.

method

Action that an object can perform after it has been created.

act method

A special method invoked once with the Act button and repeatedly by the Run button.

instance

Another word for object.

return value

A value returned by a method with a non-void return type. Examples: true, 7, 18, false, -3.

return type

Kind of information returned by a method. Examples: boolean, int.

void return type

Used to define a method that doesn't return a value. Methods with this return type are like commands.

int return type

Indicates an integer value. Used to define a method that answers questions about number.

boolean return type

Indicates a value of true or false. Used to define a method that answers true/false questions.

September 28, 2019

Welcome to Intro to Java! Here's what we'll do today:

  • Complete this background survey for AM students.
  • Send me an email with your full name in the subject line.
  • Get to know each other.
  • Discuss why we need special languages to communicate with computers.
  • Learn to program a wombat.
  • Join our Quizlet Class.
  • Start Joy of Code Lessons.
  • Play a game of Quizlet Live.
  • Writing a short reflection and sending it to tj@tjleone.com (I'll explain reflections later today).

In Between Times

If you've completed your survey, check out the Joy of Code Lessons to learn more about game-building with Java and Greenfoot. To watch the videos, you can ask for headphones or use your own headphones or earbuds if you brought them. If you've already worked with Greenfoot and would like to start on a game of your own, go for it!

Quizlet on JoC #3

Below are the terms you should know after working through JoC #3: Classes and Objects. Use the flashcards to review the terms before we play Quizlet Live!

At Home

Here are some things you might want to do at home:

  • Download and install Greenfoot on your home computer. Instructions for this are in JoC#2
  • Right click on the Hedgehog class in the Class Diagram. Select Set Image... How do you change the Hedgehog's image?
  • Download some sample projects ( ants, asteroids, fatcat, little-crab, marbles, piano, wave, wombats) and play around with them.

This web page was created to supplement a course offered by The Center for Talent Development. CTD This work is licensed under a Creative Commons Attribution 3.0 Unported License. Creative Commons License Terms of Use. Privacy Policy.