Sign In | Subscribe

Enter your Sign on user name and password.

Forgot password?
  • Follow us on:
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of Java
  • Discussion

  • Study Guides

  • Download Lecture Slides

  • Table of Contents

  • Related Services

Lecture Comments (21)

0 answers

Post by Michael Scott on November 3, 2015

How about having the Example codes available as a text file download? Much easier to offer this to students as a starting point so they can modify it.

0 answers

Post by Kitt Parker on July 10, 2015

I wish the code was available, I'd like to tinker with it.  I could copy it from the screen, but that takes too long.

1 answer

Last reply by: Kitt Parker
Fri Jul 10, 2015 12:11 PM

Post by John Bosco on July 3, 2013

Could you explain what all of the placeholders are in the example slides? For example: %S, %d, /n, and also %.2f

0 answers

Post by Phil Wyder on March 18, 2013

can a float or a double be negative? For example: -21.23234

0 answers

Post by JOSEPH PELLAM on March 18, 2013

I copied your code for the Squaresandcubes code but the following code for 1 thru 0:

"), x, (x * x), (x * x * x ));
x = 1;

Generates the following error for each line as follows:

C:\Users\jpellam.DEVELOPMENT\Documents\NetBeansProjects\squaresandcubes\src\squaresandcubes\ not a statement
"), x, (x * x), (x * x * x ));
C:\Users\jpellam.DEVELOPMENT\Documents\NetBeansProjects\squaresandcubes\src\squaresandcubes\ ';' expected

Not sure what I am missing. Thanks

0 answers

Post by Naeif Rafeh on March 6, 2013

I have problem from the Calendar class I have no idea why Ecleps did now recognized the Clendar Class
or did not import the Calendar class

0 answers

Post by Ovanes Mikaelian on January 4, 2013

After setting up the "public class accountcredit", which extension do we use to save the file - .class or .java? Thank you.

1 answer

Last reply by: Maury Hillstrom
Wed Nov 7, 2012 6:38 PM

Post by Keron John on November 7, 2012

I need to know where is the other class being called exactly in the code, I mean the precise lines in the code that are calling the other class, as I'm trying to do this and failing miserably.

3 answers

Last reply by: Annette Hoult
Sat Oct 27, 2012 6:33 PM

Post by Sergio Gutierrez on August 22, 2012

what is this Printf?? this drives me crazy!!

0 answers

Post by Jacob Mack on August 6, 2012

I apologize as I was able to get public class accounntcredit to compile. I guess most textbooks just use the capital letter naming convention.

0 answers

Post by Jacob Mack on August 6, 2012

Maury, I notice you do not capitalize like so:

public class AccountCredit. To have public class accountcredit from what I understand could cause a compile error, but I could be mistaken. Thank you for taking time out to clarify this. I really enjoy working watching and working on programming with your videos.

0 answers

Post by Tanaroek Thanaaphiwong on July 7, 2012

what happens if the number of each account becomes 0, even though they are written 500 or 100 on the page. does anyone know how to fix this problem

0 answers

Post by Matthew Lipman on October 19, 2011

Dear Hillstrom, seems u are smart by nature, easy to understand anything from you : )

i have a question, can you provide leasson for Java SWING!?

Thanks :)

2 answers

Last reply by: Mick Coyne
Wed Oct 10, 2012 10:09 PM

Post by Jethro Jones on February 27, 2011

I'd really like to have the sample code for these lessons so that I can follow along and tweak on my computer while I watch.

Classes, Objects, and Methods

  • Java uses Classes, Objects, and Methods in order to perform tasks
  • Classes contain the general information about the program, whereas Objects are specific instances of Classes.
  • Methods are sets of instructions that tell the classes and objects what to do
  • Java has a small set of Primitive Data Types which define basic data such as text and numbers
  • All data types can be used as declared variables
  • When an object is initialized for the first time, a Constructor is used to specify attributes

Classes, Objects, and Methods

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

  • Intro 0:00
  • Classes, Objects, and Methods 0:09
    • Class
    • Object
    • Attributes
    • Method
    • Arguments
  • Instance Variables 2:17
    • Instance Variables
  • Set and Get Methods 3:15
    • Set and Get Methods
  • Primitive Types vs. Reference Types 4:11
    • Primitive Types
    • Reference Type
  • Constructors 7:22
    • Attributes of Constructors
  • Example 1: Prints a Table of Squares and Cubes From 0 to 10 8:26
  • Example 2: Bank Account Class with Constructor 11:54
  • Example 3: Create and Change Account Object 14:14
  • Example 4: Bank Account Debit Function 18:44
  • Example 5: Debit Account Balance Program 20:08
  • Example 6: Hardware Store Inventory & Invoice 22:50
  • Example 7: Hardware Store Inventory & Invoice Main Class 26:05