Introduction



https://rillo.ee/2021/05/21/it-oppimine-2-semester/java/

Java is a general purpose, object-oriented programming language.

It was created in 1995 by James Gosling.  It is owned by Oracle and more than 3 billion devices run Java!

Java has a wide range of applications such as:

  • Mobile applications
  • Desktop applications
  • Web applications
  • Games
  • Database connection

Companies that use Java

Amazon down? Current status and problems | Downdetector

Netflix - index.impakter

 

Harnessing the potential of LinkedIn for Business | British Marine

Minecraft Logo, history, meaning, symbol, PNG

Symbols of NASA | NASA

NASA’s open source ‘WorldWind’ software is created using Java – click here to try the demo!

 

Task



Learn about Java 

Look at video Course for the beginners linked in this lesson on the right side and see, how would you be prepared for learning Java language. Think about where and how you could use it?

Installing Java

Eclipse Logo PNG Transparent & SVG Vector - Freebie Supply

You can find the most recent version of Java here – download this before you get started.

To get started programming with Java, we need to install an IDE (or Integrated Development Environment).

IDEs are software used for building applications that combines useful developer tools in a single GUI (Graphical User Interface).

The IDE used in these resources will be ECLIPSE.

The Eclipse Installer

To install ECLIPSE, we will use the website’s Eclipse Installer. Click here for the Eclipse Installer.

When you arrive on the website, click on the appropriate bundle for your platform.

The Eclipse Installer shows the packages available to Eclipse users. Make sure you select the ‘ECLIPSE IDE for Java Developers’ option.

Specify the folder where you want Eclipse to be installed. The default folder will be in your User directory. Select the ‘Install’ button to begin the installation.

Once the installation process is complete you can now launch Eclipse!

Launch Eclipse in the default workspace.

For a more in depth tutorial of how to get started with Eclipse, click here

 

 

 

Process

Creating our first Java program…

Discuss in class, how many of you have ever came in contact with Java. What do you know about it? Have you used something similar?

Do you know how you can use Java in different ways? Look it up from the links in this lesson. 

Have you heard from a city called Java. Look here

Think about how different coding skills can help you and make a difference in the future. What kind of real life problems you could solve?

With your teacher, look at the pdf file and try to make interesting codes with Java. Who can create the longest word or most interesting one? 

The process is described in the document called "Java tutorial.pdf" attached to this page (on the right side). This consists of different steps on how Java runs. The document consists of different steps and describes the Java commands needed to create a program in Java. 

  1. You need to start at installing the software; look at the steps given in Java tutorial page 5.
  2. Learn about how to create a Java project, a module, a package, classes  and main () method. 
  3. Follow the guide until the end of the lesson; try the activity on page 20 to print out the command.
  4. On page 23 there is the final combined version of the code which you can use to compare against your code.

 

Conclusion

  • Now you should be able to install and run Java and Eclipse.
  • You should be able to create a Java program and print out what you want.
  • You should be able to know the basics of Java programming and the idea behind it.
  • By the end of this resource, you should be able to have a working HelloWorld class that prints out a message to the user.

Next steps:

  • This is a good start for your own program creation.
  • Create your own program or quiz and share it.

Links to everyday life:

  • Community - as mentioned in the introduction section, a lot of well-known applications and services use Java, among these ATM-s, ticket booths etc. Next time you use a digital tool, think about if that could also use Java?

Learning Objectives

Learning Objectives

  • You will be able to download and install successfully Java and Eclipse
  • You will be able to learn how to make a new java project, package and class
  • You will be able to learn how to write a basic program in Java using System.out.println()

Resources

Click each section below to see all resources available.