In this course, you will learn the basics of the #1 language in the world. Java is taught as an introductory language in CS courses all over the world. You will be among CS students from the best universities.
- Introduction
- Algorithms
- Conditional Statements
- Switch/Case
- Loops
- Arrays
- Matrix
- Strings
- Functions/Methods
- Black Box
- White Box
- Input/Output
- Passing by value
- Passing by reference
- Fibonacci's Sequence
- Prime Numbers
- Magic Matrix
- More about Strings
- Pow
First off, what is an IDE? An IDE (Integrated Development Environment) is a place for coders to change the code of the program they're working on. From the tiniest of projects to the largest you will need an IDE, which one you choose is up to you. For this tutorial we will be using Eclipse, but there are plenty of other choices.
Go to the Eclipse website and download the latest version of Eclipse. Currently, it is Eclipse Oxygen.
- Click "Eclipse IDE for Java Developers". This will install the IDE, a git (version control) client, and a couple of other editors for advanced Java development.
- Change the install path (if you want to), click install, then accept the terms and conditions.
- Launch Eclipse. Click 'Launch' when the program asks about a directory for the workspace.
- Click 'File' -> 'New' -> 'Java Project'. Enter a name for your project, and click 'Finish'.
- Right click on your project in the left pane, choose 'New', and select 'Class'. Name it 'Main'.
- Click 'Finish' and you're done! You can now do all of the examples in this repository!
- Download java jdk from the website install it in the host machine and install the path.
- Download a text editor (Sublime, Atom, etc) and start writing the code.
- Open terminal go to the folder where your java code is saved and compile the file using the command javac classname.java.
- After successfully compiling the code java will create a class file with name classname.class.
- Next step is to execute the file in the terminal,command for executing is java classname.
- Boom!! there is your output "Hello world!".