Java Tutorial Ep. 6 - Arrays

preview_player
Показать описание
Hello everyone! In this video I show you how to create and use Arays in Java! Throughout this Java series I will be teaching you the most I can about Java and if you have any questions or suggestions, be sure to let me know!
Like and subscribe!! 😍

0:00:00 - Creating a new project
0:01:24 - About Arrays
0:01:58 - Creating an Array
0:10:20 - Outro
Рекомендации по теме
Комментарии
Автор

Previously, Learning from multiple Youtubers like Bro Code, Apna colledge, Free coding camp ur explination is better then all of them!

jahanzaibafzal
Автор

Awesome, practical use of an array. Glad to see a video that has an example and reason for using it. Thanks! Onward to Episode 7!

ryanelliott
Автор

Heads off in front of your energy and teaching.

AyanHussain-jw
Автор

i finished this tutorial. i also earned 100 respect points

Jay-bcnk
Автор

I loved when he asked to do a challenge, without having to think through something myself, I will not learn. I'm going to continue this series hopefully it has more of these

At first I attempted the challenge but was failing to do it, but its because I forgot to put the total of the array and was trying to figure out how to get it. But you just manually count them lmao. I watched him doing it and was really surprised at how close I got. Challenges are super fun

XcapSupa
Автор

Previously learning C++ from your tutorials have made learning Java super easy. Thanks!

adamshaar
Автор

Was able to reduce it to 3 lines! (the test) thanks for the awesome videos Kody!

araandnickii
Автор

These tutorials are absolutely great so far! I also did the respect point question, and accidentally made it work with 3 lines instead of 4. I think i am getting the hang of this, so thank you so much lol

lanse
Автор

10:00 "theres an easier way to do this, im gonna show you" Me doing it with way less code: 💀

Lu-zdiv
Автор

I earned 100 respect points!
here's the code for proof, sorry for it being in polish lmao:

public class Main {
public static void main(String[] args) {

double liczby[] = {3.4, 2.6, 20.5, 7, 42};
double suma_liczb;
double srednia;
suma_liczb = liczby[0]+ liczby[1]+ liczby[2]+ liczby [3] + liczby [4];
srednia = suma_liczb/5;
System.out.println(srednia);
}
}

vuyo
Автор

instead of int you can do string for words

icyisaiah
Автор

you did it u earn my 100 respect points lol

yukmanyung
Автор

The challenge was fun, coming from C# I see a lot of similarities but that's more general programming knowledge but there are some language similarities I'm seeing here.
As for the code I wrote here It is I guess.
float funnyNumbers[] = {12.1f, 5.22f, 11.69f, 1.11f, 31.22f};
double allFunnyNumbers = funnyNumbers[0] + funnyNumbers[1] + funnyNumbers[2] + funnyNumbers[3] + funnyNumbers[4];
double averageFunnyNumbers = allFunnyNumbers / funnyNumbers.length;


Why did I use doubles later? Idk just felt right

MMRRSasuke
Автор

i just got a 100+ respect points, 100+ more for using a for loop without using one before

TaahaZaidi
Автор

"And then I'll actually like you" 💀

kaildeb
Автор

After seeing the solution to the test my answer felt pretty lazy. I mean it still output the correct number but it feels like I cheesed it a little though so is there any issue with doing it like this?

double values[] = {203.328, 83.932, 703.281, 839.399, 6.025};
System.out.println((values[0] + values[1] + values[2] + values [3] + values[4]) / 5);

Ronkley
Автор

Hey kody this line: out.println(1.2 + 5.2 + 2.3 + 1.45 / 4); returns 9.0625 instead of 2.53

derwinralph