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
NASA’s open source ‘WorldWind’ software is created using Java – click here to try the demo!
Task
Learn about Java
- What is it?
- Where and how it can be used for?
- How can I get started?
- What is the history behind it?
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
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.
- You need to start at installing the software; look at the steps given in Java tutorial page 5.
- Learn about how to create a Java project, a module, a package, classes and main () method.
- Follow the guide until the end of the lesson; try the activity on page 20 to print out the command.
- 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?