Sign In | Subscribe
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

Bookmark and Share
Lecture Comments (24)

0 answers

Post by jitendra singh on January 25 at 08:00:39 PM

I like your digital writing can you please give the name of the computer.  I am interested in buying it


thanks

1 answer

Last reply by: Maury Hillstrom
Fri May 29, 2015 7:08 PM

Post by alina trandafir on May 23, 2015

Hi professor,
Quick question can you explain a little more on what it means to return data.  
I noticed wether we have data that is being input or output the method is void.
So when we put public static void main(String args [], when would it not be void?

4 answers

Last reply by: Mike Six
Wed Sep 21, 2016 11:09 PM

Post by Ihechukwudere Okoroego on April 24, 2014

Hello Professor, Those are helpful lectures. Please can you send me exercises files for all the lectures to give me more practice.
Thanks  

0 answers

Post by Martha Villanueva on January 16, 2014

Maury, thanks for the lesson.
When working in NetBeans, what are the differences between "Default Package" and "Source Package"? Why the warning in NB saying is was not recommended to place java classes in the default package? Is there any best practice there that will be advisable to follow?
Thanks and regards  

0 answers

Post by hawa guled on October 2, 2013

do u think you may starting basic computer training like software and hard
ware

0 answers

Post by Natalia Frenkel on April 29, 2013

When I tried to test my first java code, I got thei mwssage:
Caused by: java.lang.ClassNotFoundException: chargebac
k.MyFirstApp.java
at java.net.URLClassLoader.findClass(URLClassLoader.java:434)
at java.lang.ClassLoader.loadClass(ClassLoader.java:660)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:626)
Please, help me to undestand why is that. What should I fix ?

0 answers

Post by R Grose on February 11, 2013

Is there a reference or textbook you recommend to go along with the lecture

0 answers

Post by Dana Amin on December 4, 2012

I would like to know if Java is used to creat systems out there please? such as bank system and companies system ? if not what is that language which is used ? thanks

0 answers

Post by Patti Henderson on November 7, 2012

Syntax Errors - } ; ) missing

1 answer

Last reply by: Maury Hillstrom
Thu Nov 1, 2012 2:38 PM

Post by george masih on June 12, 2012

import java.io.*;
import java.util.*;
class string {
public static void main(String[] args){
Scanner sc = new Scanner(system.in);
String i = sc.next();
System.out.println(i);

System.out.print("tesing input ");
----------------
i got error when i run this programme i am using eclipse editor it says scanner statement is not correct.is there anyone can help me to correct this programme
thanks

0 answers

Post by majak maker on May 14, 2012

my question is not about this video. how do you encipher and decipher a text using a key word?

0 answers

Post by Jorge Guerrero on April 2, 2012

Maury, you should have a section on how to setup the user interface. I set mine up and it was a PAIN. I also had to find a workaround for java to run the programs from the command prompt. It was not easy. Also, the NetBeans program does not run individual project files by clicking the huge green button. You need to right click the file in the project window and run just THAT file. Otherwise, NetBeans will run the main class file and may confuse the user, because the default file is written without errors, but outputs nothing. You really need to include this section, please, for the students and newbies. Seems like learning Java is worth a while; I'll see if all my frustration pays off after taking the two courses offered by educator.com. I like to take courses here for intro.

0 answers

Post by Jorge Guerrero on April 2, 2012

Maury, Java is not open-source, even though for now it's free. You should therefore, instruct students on how to setup a developer IDE environment for running Java Script. It won't run on the command prompt either, if you haven't installed the SDK from Oracle's Java site. Neither will NetBeans IDE intall OR run if you don't have the said SDK. The installer takes quite a bit of space on the hard drive, so you should also mention this to students. Once you instruct on what and how to install, THEN you can go ahead and run the scripts. It's not clear for the novice what you're doing or where you're doing it when you're running the example programs.

0 answers

Post by Jialan Wang on March 31, 2012

in 6:05 the program says 500 meters equals 310694.1 miles
what's with that

2 answers

Last reply by: Babatunde Thomas
Mon Mar 10, 2014 6:41 PM

Post by Jacob/Benja Share on January 15, 2012

When I tried to run the first java program in terminal this is what I saw:
Exception in thread "main" java.lang.NoClassDefFoundError: welcome
Caused by: java.lang.ClassNotFoundException: welcome
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247).

And this is what I typed in the file "welcome.java":
public class welcome
{
public static void main( string args[] )
{
system.out.println( "Welcome" );
}
}
.
Please tell me what I would do. Thx.

0 answers

Post by Jacob/Benja Share on November 27, 2011

In the Java Script tutorials he said that Java Script and Java have nothing in common but after going through the Java Script this looks very similar.

Introduction to Java

  • Java is an object-oriented, event-driven, stand-alone programming language
  • Java programs can be created in a standard text editor
  • Programs can be run through a command prompt or an IDE such as NetBeans
  • All Java programs must contain the “public static void main” method
  • Comments can be added by using the double-slash (“//”)

Introduction to Java

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
  • What is Java? 0:12
    • Definition of Java
  • Writing a Java Program 3:48
    • Example: Converter IO Program
    • Example: Grade Program
    • Example: Writing a Java Program
  • Starting Point of All Java Code 14:00
    • 'Public Static Void Main'
  • 'Public Static Void Main' Syntax 16:07
    • Syntax
    • String
    • args
  • How to Add Comments 17:13
    • How to Add and Use Comments
  • Java Statements 17:59
    • Java Statements and Example
  • Example1: Text-printing Program 18:44
  • Example 2: Text-printing on Multiple Lines 20:12
  • Example 3: Addition Program that Displays the Sum of Two Numbers 21:11
  • Example 4: Program that Determines Calculations of Two Numbers 24:43
  • Example 5: Running Programs Through NetBeans IDE 25:50