SSU CSS 414 - Java Tutorial for Beginners

Unformatted text preview:

Java Tutorial for Beginners Programming with Arul I Arul a software engineer with over two years of experience and has taught over 1000 people how to code I have designed this course for anyone who wants to learn Java If you re a beginner don t worry I promise you to make Java super simple and hold your hand through this course I hope you ll stick around and learn this beautiful and powerful programming language The Anatomy of a Java Program In this Java tutorial we ll be looking at the basics of a Java program The smallest building block in Java programs are functions If a function is a block of code that performs a task think of the buttons on the remote control of your TV Every Java program should have at least one function and that function is called main Writing Java Code After the parentheses we have a pair of curly braces and inside these braces we write the actual Java code Every Java program should have at least one function and that function is called main So main is the entry point to our programs Whenever we execute a Java program the main function gets called and the code inside this function gets executed Downloading IntelliJ IDEA IntelliJ IDEA is absolutely free and it s more than enough for this course so download it now Download IntelliJ IDEA A class is a container for related methods so we use classes to organize our code By the same token we have a concept called package and we use a package to group related classes As our applications grow we re going to end up with hundreds or even thousands of classes so we should properly organize these classes into packages The base package for a Java project is the domain name of your company in reverse The code editor might look a little bit intimidating at first but trust me it s really easy and you re going to learn about it throughout this course For now just type a base package for your project it can be your name or whatever it doesn t really matter IntelliJ is building our application and we can see the result in this little terminal window So here s our Hello World message That was our first Java program


View Full Document

SSU CSS 414 - Java Tutorial for Beginners

Documents in this Course
Load more
Download Java Tutorial for Beginners
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Java Tutorial for Beginners and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Java Tutorial for Beginners 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?