filmov
tv
Java Lesson 2 - Variables - using int & double

Показать описание
Java Lesson 2 - intro to variables
I DID NOT CREATE KODING.COM, I AM ONLY USING IT TO SHOW YOU GUYS HOW TO CODE
Hey guys, if you don't feel like watching the video, then I can explain to the steps of creating variables here:
Steps
3. type
public class variables {
public static void main(String args[]) {
4. Then you are going to type in a variable.
5. In my video, I created a variable called age and set it equal to 20
age = 20;
6. I showed the age = 20; wouldn't work by itself, so I explained that you need to put either an int or double on the beginning of your variables.
7. I printed out the variable in the terminal below
9. The terminal successfully printed out 20.
10. When I changed int age = 20; to double age = 20; The terminal printed out 20.0
11. The reason why the terminal printed out 20.0 is because a double turns the number into a decimal rather than an integer.
12. Well that's all for today guys! See you next time!
I DID NOT CREATE KODING.COM, I AM ONLY USING IT TO SHOW YOU GUYS HOW TO CODE
Hey guys, if you don't feel like watching the video, then I can explain to the steps of creating variables here:
Steps
3. type
public class variables {
public static void main(String args[]) {
4. Then you are going to type in a variable.
5. In my video, I created a variable called age and set it equal to 20
age = 20;
6. I showed the age = 20; wouldn't work by itself, so I explained that you need to put either an int or double on the beginning of your variables.
7. I printed out the variable in the terminal below
9. The terminal successfully printed out 20.
10. When I changed int age = 20; to double age = 20; The terminal printed out 20.0
11. The reason why the terminal printed out 20.0 is because a double turns the number into a decimal rather than an integer.
12. Well that's all for today guys! See you next time!
Java Lesson 2 - Variables and Data Types
Java Lesson 2 | Variables
Java Tutorial for Beginners #2 - Variables & Data Types
Variables in Java | Input Output | Complete Placement Course | Lecture 2
Lesson 2: Variables
BeginnersJava.com -- Java- Lesson 2- Simple I/O --New data types, variable naming and arithmatic
#2.1 Java Tutorial | Variable in Java
Java Tutorial #2: Variables & Datatypes | Concatenation | Eclipse | Filipino | Tagalog
Leetcode no 2040 | Kth smallest Product of two sorted arrays | Java | c++| Hindi
Learn Programming in Java - Lesson 02 : Variables, Data Types and Assignment.
Variables in Java ✘【12 minutes】
Java Programming Ep.2: Variables
12y - Learn Java - Exercise 2 - Java Variables
Java Programming Tutorial 02 - Adding Parameters to a Method & Returning Values
Apprendre Java #2 Variable et Référence
Human Calculator Solves World’s Longest Math Problem #shorts
Java Full Course for Beginners
Mastering Java, Vol 3 Lesson 2 Adding Parameters To A Method And Returning Values
AP Computer Science Lesson 2 - Intro to Java
Java Tutorial 2 Variables (Integer)
Java Video Tutorial 2
Java tutorial beginner| Java interview questions | Java questions and answers | java syllabus #java
Java Tutorial - 2 | Edureka
functions explained in 17 seconds! (Algebra 1)
Комментарии