29 September 2020

What methods are in Java? (A more in-depth tutorial)

Welcome to another tutorial on the "How to code in Java" tutorial series. In the last tutorial, we learned about how type-casting work and when to use them. In this tutorial, we'll be learning what methods are, how to use them and when to use them. Since everything in Java is represented in the form of objects, Java doesn't have "functions" like some other programming language. Instead, Java has only methods. 

24 September 2020

How type-casting works in Java.


Welcome to another tutorial on the "How to code in Java" tutorial series. In the last tutorial, we have gone through on what arrays are and how to use them. In this tutorial, we'll be going through on how type casting works in Java. Because there are many different types of data types in a programming language. Sometimes you will find yourself in a situation where the variables or values are not compatible with each other while assigning the values into a variable. That's when type-casting help us to solve the problem for us.

21 September 2020

How Arrays work in Java?

Welcome to another tutorial on the the "How to code in Java" tutorial series. In the last tutorial, we have gone through on how loops work in Java. In this tutorial, we'll be going through how arrays work in Java. I would recommend you to read on how loops work first as we'll be needing some knowledge on them. Now, let's get started with arrays.

15 September 2020

What are loops in Java?

Welcome to another tutorial on the "How to code in Java" tutorial series. In the previous tutorial, I explained how we can take the user's input from the terminal using the Scanner class. While in this tutorial, we'll be going through on how loops work in Java. There're many different types of loops in programming, the commons one are for loop, while loop, do-while loop and enhanced for loop (Java only has this four types of loops). This tutorial won't be covering the enhanced for-loop of Java because it requires some knowledge of arrays to be understandable.

11 September 2020

How to get user input in Java?


Welcome back to another tutorial on the "How to code in Java" tutorial series. In the last tutorial, I explained what conditional statements are and how are they used. If you haven't read it, feel free to read it since you might learn something new by reading it. In this tutorial, we'll be going through how to get the user's input from the terminal in Java. I'll be showing you how to quickly get the user's input from the terminal using a class's object along with its method to get different types of input. If you don't know what method, class or object is, please read my other tutorial for a quick explanation.

5 September 2020

How to make a tic-tac-toe game using Javascript


In this tutorial, you'll be learning on how to make your own tic-tac-toe game using Javascript. In a traditional tic-tac-toe game, there will be two-player that in turn try to get 3 consecutive cells with their assigned icon (usually a circle, O and times, X) in a 3x3 grid. This is a simplified version of my tic-tac-toe game, where there you're up against a bot created with the minimax algorithm. While in this version, you'll need to ask some of your friends or family members to play with you or you could just play it alone. You can find my tic-tac-toe game through this Github link. All the code for this tutorial could be found here and if you want to play the game, you could visit this Github page. Now let's get started with the things that our game will need. 

28 August 2020

How conditional statements work in Java?


Welcome back to another tutorial for the "How to code in Java" tutorial series. In the previous tutorial, we learned about bitwise operators. In this tutorial, we'll be learning about conditional statements. We'll learn about what is conditional statements, the different type of it and how can we use them. So let's begin.