I sat through and coded for 6 hours 30 minutes, along with you and i feel like i am on another level of understanding it now! You should be my Uni Professor :)
Great video. Thanks freeCodeCamp and Farhan.Just one correction at 3:12:00 , that doubling the arraylist is not always correct.For eg : if your input arraylist is [2,4,5,1,3,6] then it will give [8,4,10,2,12,6] because of the indexOf logic .(It doubles 2 to 4 in the first iteration and in the second iteration again doubles the 4 which actually was doubled from 2 rather than doubling the 4 at index 1)
This course desperately needs exercises. You may think you understood the programming concepts covered in this video but you'll see that putting them in practice is a completely different story altogether.
I think the basic concepts are easy to find and learn. A lot of students needs good and detailed tutorial on OOP concepts. Though you guys are the real W
Thank you so much for making this! It's been awhile since I first learned & use Java and now I have to re-learn it. You made this complex language a lot more understandable & approachable.
At 03:11:19, To solve it correctly, One way to do this is to create a copy of the original array and perform operations on the copy while keeping track of the indices correctly. This ensures that modifications are made to the correct elements without interfering with the indexing process.
Great refresher for relearning Java. It's been a while since I coded in it. You went into easy to understand detailed explanations. Especially on OOP. Thank you so much for making this!
Honestly, Freecodecamp has done so much in the decentralization of knowledge. Although, it seems to be there is a lack of Java content, specifically in the SpringBoot projects. But take my rant as a sidenote while I enjoy and digest this Java content. As always, freecodecamp rocks!!
I wrote a total of 532 lines of code following this video. This is a really helpful tutorial for beginners. Although I have learned Python prior, mentioning the methods and their creating would've been helpful before going into the OOP part. No offense, but I think I have an Indian accent immunity now. Thanks!
In the ArrayLists part of the video, as of the the current time, you can use the set() method without using Integer.valueOf() just to set the value and Java will automatically figure it out. Take the example in the video, you can write it as .set(2, 30) and it works just fine. This goes the same for the contains() method.
I think many course don't explain why. Like example system means your computer operating system Dot . Is like a / in your file, example user/new folder/download. Out is to export. The println is a function that print as the name stated. Here is complete explaination of this: system =(your operating I asume) dot . = (like a directory path separator : user/new folder/download) out = (output or export) dot=(again) println = (a function to print). With that breif explaination why and what it do could make the coures underststandable as the core which is the concept.
I think that when you use the forEach method, it does not do what it should. You start with [5, 3, 1, 4, 2] Because the lambda function looks for the index of value, the iterations will do as: the forEach will go sequentially through the ArrayList, i.e. will try pos 0, then 1, then 2, ... 0 - look for 5 (), finds it at pos 0, and doubles it ArrayList is now [10, 3, 1, 4, 2] 1 - looks for 3, finds it at pos 1, and doubles it now : [10, 6, 1, 4, 2] 2 - looks for 1, finds it at post 2, and doubles it now: [10, 6, 2, 4, 2] 3 - looks for 4, finds it at pos 3, and doubles it now: [10, 6, 2, 8, 2] 4 - looks for 2, but first occurence is at pos 2! so doubles it now: [10, 6, 4, 8, 2] So the final answer is [10, 6, 4, 8, 2], which is not a list of the doubled elements of the original one.😉 Otherwise, great course, I really enjoyed it!
When, you run forEach and updated the same arrayList by multiplying each element by 2, the indexOf method took the first value of 2 which was updated by multiplying 1 and again it just changed it and kept the last 2 intact. timestamp 3:11:00
At 3:11:19 there is an error in the program where it set the new value of array list is twice of it's previous value. But in example it [5,3,1,4,2] sets to [10,6,4,8,2]. So we can see that 1 was set 4 and 2 remained unchanged.
The code is incorrect because the method indexOf(n) always returns the FIRST occurrence of n. Therefore, when 1 becomes 1*2 = 2, there are actually two occurrences of the number 2 in the array. However, the multiplication is still applied to the FIRST number 2 found in the array, which leads to the error. It's a pity when the author didn't pay attention to such a basic error.
For anyone who's having the same problem, sometimes when running code it will just print hello world in the console even if you didn't have a print hello world line and that's because it's reading the wrong file in replit, yo need to go to config files on the left side of your screen and choose replit then change both entry point and run and add the name of the file you're using instead of Main so for this course which the file name is hello world run would be run = "java -classpath .:target/dependency/* HelloWorld" and entry point would be entrypoint = "src/main/java/HelloWorld.java" I've had this problem and it was painful just looking left and right to fix it so remember to replace the HelloWorld parts in both run and entrypoint to the file you're making code in so it actually runs that file also funnily enough the part about operators when you try and type all the code he typed in the AI will actually recognize what your doing and will try and assist you by typing them all out and i think the algorithm AI noticed all the people typing the code for this course and learned it from them
There's no way, I have the Java Oracle docs opened, was searching for a tutorial and you guys released a Course just in the perfect time. Thanks. edit: Just finished watching and taking some notes, the video covers everything needed to start programming in java and even gets the basics of OOP. Good work!
When sorting the vowels in the array at 2:06:11, shouldn't the programmer have to define what order the information in the array has to be sorted in? For instance, what if it's characters from another alphabet, say, if it's Asian or Middle Eastern instead? What if it's groupings of numbers on the 8-stystem rather than the 10-system? What if it's elements found on the Periodic Table of Elements, or what if it's books found in just one section of a Library that both categorizes them and alphabetizes them at the same time? And so on. Shouldn't the programmer have to tell Java exactly what system has to be used for sorting, and be given the chance to define that system with specific details, first, before Java can decide how the information in the array is to be sorted?
on the 1 hour and 31 mints10 seconds after the %d is an excellent age to start programing when you are typing :string language =scanner.nextline(); you can instead type.:string language = scanner.next(); then it gives you the option to type what language do you prefer
Hi @Mahek Panchal. So I went back into the code and figured out the problem. You see, the last number of the original list is 2. On the third iteration the 1 in the list becomes a 2. So in the last iteration, when the code is looking for the index of 2, it finds two instances. One is at index 2 so the code multiplies that by 2 and ends up making it a 4. Thanks a lot for pointing it out. If it's still hard to understand, let me know.
he is the best simply but perfactly cover everything in very short time . searching for his more content , fabulous man . Taka love from a Bangladeshi learner of you.
When I'm lost sometimes, I try to always motivate myself to not focus so much on myself and be mindful of my surroundings. Also, I seek God's guidance because I know he has a better plan and purpose for me than I think. We need to be positive always and do not dwell on negativity. 🙂
Hi @Turan. So I went back into the code and figured out the problem. You see, the last number of the original list is 2. On the third iteration the 1 in the list becomes a 2. So in the last iteration, when the code is looking for the index of 2, it finds two instances. One is at index 2 so the code multiplies that by 2 and ends up making it a 4. Thanks a lot for pointing it out. If it's still hard to understand, let me know.
I sat through and coded for 6 hours 30 minutes, along with you and i feel like i am on another level of understanding it now! You should be my Uni Professor :)
Thanks for the compliments.
you are awesome
Yeah but you'll need some sort of notes just in case you forget something, please if anyone has any then do share/tell me how to obtain them
@Freecodecamp - please create an advanced java course and do a couple of projects as well in Java, Spring boot etc. kind request.
Yesssss
Hope they see this!
Apply datastructures in projects
That'd be good. I was waiting for a course like this.
Yes! We need a Springboot course, that would be super helpful!
Hace tres días empecé java y ahora ustedes sacan video, siempre me leen la mente cuando necesito algo jajajja mil gracias
learned a lot more here than 2 months of class in our university
Great video. Thanks freeCodeCamp and Farhan.Just one correction at 3:12:00 , that doubling the arraylist is not always correct.For eg : if your input arraylist is [2,4,5,1,3,6] then it will give [8,4,10,2,12,6] because of the indexOf logic .(It doubles 2 to 4 in the first iteration and in the second iteration again doubles the 4 which actually was doubled from 2 rather than doubling the 4 at index 1)
I'm just starting to learn this, do I prefer to learn Java first?
It's nice see someone from Bangladesh doing great work in international plateform . I love your tutorial and Thanks you for doing this
He is from bangladesh??
@@Disha2812 Yes, it's understandable by his accent.
This course desperately needs exercises. You may think you understood the programming concepts covered in this video but you'll see that putting them in practice is a completely different story altogether.
definitely
I mean that's obvious lol
You should practice by yourself.
Do u have any resources that has exercises that I can test from this video
I think the basic concepts are easy to find and learn. A lot of students needs good and detailed tutorial on OOP concepts.
Though you guys are the real W
Yeah you are right bro
They should make a full oop Java course.
We have bro code to use it is included a s a 12 hr session of all oop concpets
What is an oop?
@@jamesbyrd3740 object oriented programing.
Thank you so much for making this! It's been awhile since I first learned & use Java and now I have to re-learn it. You made this complex language a lot more understandable & approachable.
At 03:11:19, To solve it correctly, One way to do this is to create a copy of the original array and perform operations on the copy while keeping track of the indices correctly. This ensures that modifications are made to the correct elements without interfering with the indexing process.
Great refresher for relearning Java. It's been a while since I coded in it. You went into easy to understand detailed explanations. Especially on OOP. Thank you so much for making this!
Honestly, Freecodecamp has done so much in the decentralization of knowledge. Although, it seems to be there is a lack of Java content, specifically in the SpringBoot projects. But take my rant as a sidenote while I enjoy and digest this Java content. As always, freecodecamp rocks!!
Lacks for Groovy as well which is in my opinion great language and great upgrade which makes Java even better.
what is groovy ?@@JasonSamuel-vh1dc
if i learn java from this tutorial could I move onto learning springboot?
@@JasonSamuel-vh1dc😅a. T shirt
I wrote a total of 532 lines of code following this video. This is a really helpful tutorial for beginners. Although I have learned Python prior, mentioning the methods and their creating would've been helpful before going into the OOP part. No offense, but I think I have an Indian accent immunity now.
Thanks!
In the ArrayLists part of the video, as of the the current time, you can use the set() method without using Integer.valueOf() just to set the value and Java will automatically figure it out. Take the example in the video, you can write it as .set(2, 30) and it works just fine. This goes the same for the contains() method.
Thx for free courses and sharing knowledge for all 🙏
I learnt a lot from FCC ...thank You 💜
I think many course don't explain why. Like example system means your computer operating system Dot . Is like a / in your file, example user/new folder/download. Out is to export. The println is a function that print as the name stated. Here is complete explaination of this: system =(your operating I asume) dot . = (like a directory path separator : user/new folder/download) out = (output or export) dot=(again) println = (a function to print). With that breif explaination why and what it do could make the coures underststandable as the core which is the concept.
Thank you Farhan Hasin Chowdhury for a great course of Java!🙏
Done with this!!
Thank you Farhan sir!
I learned more from this video than entire semester at my uni. Thank you Chowdhruy Shab for your attention to small details!
When I heard his voice I was guessing Farhan sir from Bangladesh
Nice to see him in the best code camp❤❤❤❤
I think that when you use the forEach method, it does not do what it should.
You start with [5, 3, 1, 4, 2]
Because the lambda function looks for the index of value, the iterations will do as:
the forEach will go sequentially through the ArrayList, i.e. will try pos 0, then 1, then 2, ...
0 - look for 5 (), finds it at pos 0, and doubles it
ArrayList is now [10, 3, 1, 4, 2]
1 - looks for 3, finds it at pos 1, and doubles it
now : [10, 6, 1, 4, 2]
2 - looks for 1, finds it at post 2, and doubles it
now: [10, 6, 2, 4, 2]
3 - looks for 4, finds it at pos 3, and doubles it
now: [10, 6, 2, 8, 2]
4 - looks for 2, but first occurence is at pos 2! so doubles it
now: [10, 6, 4, 8, 2]
So the final answer is [10, 6, 4, 8, 2], which is not a list of the doubled elements of the original one.😉
Otherwise, great course, I really enjoyed it!
i was looking for this comment! thanks for the explanation, it really helped, i was super confused when i noticed it wasn't actually doubled
@@haadiyasajid9035 Thanks for the pep talk!😀 As I first felt the same way, I went through it and eventually understood. Let's keep working! Cheers.
Yeah I noticed that long after the video was live. Apologies.
@@fhc9916 No worries! That really is a minor issue regarding all the time and efforts you put in this course. Thanks again! Cheers.
This comment needs upvotes great explanation! How do you solve it tho?
When, you run forEach and updated the same arrayList by multiplying each element by 2, the indexOf method took the first value of 2 which was updated by multiplying 1 and again it just changed it and kept the last 2 intact. timestamp 3:11:00
السلام عليكم اخ عادل اني متابعك من دروس الc++ استمر. بلغة الجافا لان نحتاجها في الجامعة بارك الله بيك وبجهودك الكريمة
3:02:00 if you are using vs code, you can skip the Integer.valueof part and directly write the value you want.
It's actually true even if you are not using VS code.
hello I am Rechan I am 11 years old and I am studying programming . thank you Farhan sir.
Thank you for making this Farhan. It has been a pleasure spending time with you!
thank you farhan you just saved my career
I feel proud to watch this tutorial from a renowed tutorial platform by a Bangladeshi!!! Thanks Farhan Bhai for making us proud....
how do u know its from bangladesh and not from pak
@@Boltkiller96 cuse he says hes from there
when i get enough money ill definitely support y'all.
Kiitos!
At 3:11:19 there is an error in the program where it set the new value of array list is twice of it's previous value. But in example it [5,3,1,4,2] sets to [10,6,4,8,2]. So we can see that 1 was set 4 and 2 remained unchanged.
The code is incorrect because the method indexOf(n) always returns the FIRST occurrence of n. Therefore, when 1 becomes 1*2 = 2, there are actually two occurrences of the number 2 in the array. However, the multiplication is still applied to the FIRST number 2 found in the array, which leads to the error.
It's a pity when the author didn't pay attention to such a basic error.
@@KhacHoanPhamthanks for answer!
How would you go about doing what he intended? Is there a way to pull the index of the item your on while using foreach?
How do you fix this error please?
He is amazing! Thank you, Farhan Hasin Chowdhury
Im glad this is so new! Im taking my first java class in college!
Next Spring Boot tutorial projects, please!
Huge respect from Bangladesh
55:45 Good job Bangladeshi bro, nice to see you. 💝💝💝
Thank you so much for this absolute awesome course, here I start my Java journey
it is the best java course I have ever watched, thanks a lot👏
Please make a one shot video on C++
very good babu moshai, ami toma ke bhalo bhashi
For anyone who's having the same problem, sometimes when running code it will just print hello world in the console even if you didn't have a print hello world line and that's because it's reading the wrong file in replit, yo need to go to config files on the left side of your screen and choose replit then change both entry point and run and add the name of the file you're using instead of Main so for this course which the file name is hello world run would be run = "java -classpath .:target/dependency/* HelloWorld" and entry point would be entrypoint = "src/main/java/HelloWorld.java"
I've had this problem and it was painful just looking left and right to fix it so remember to replace the HelloWorld parts in both run and entrypoint to the file you're making code in so it actually runs that file
also funnily enough the part about operators when you try and type all the code he typed in the AI will actually recognize what your doing and will try and assist you by typing them all out and i think the algorithm AI noticed all the people typing the code for this course and learned it from them
Nice😎
Always good quality content
Hyped up to learn java 👍
There's no way, I have the Java Oracle docs opened, was searching for a tutorial and you guys released a Course just in the perfect time. Thanks.
edit: Just finished watching and taking some notes, the video covers everything needed to start programming in java and even gets the basics of OOP. Good work!
hi
hi
When sorting the vowels in the array at 2:06:11, shouldn't the programmer have to define what order the information in the array has to be sorted in? For instance, what if it's characters from another alphabet, say, if it's Asian or Middle Eastern instead? What if it's groupings of numbers on the 8-stystem rather than the 10-system? What if it's elements found on the Periodic Table of Elements, or what if it's books found in just one section of a Library that both categorizes them and alphabetizes them at the same time? And so on. Shouldn't the programmer have to tell Java exactly what system has to be used for sorting, and be given the chance to define that system with specific details, first, before Java can decide how the information in the array is to be sorted?
I was looking for java tutorial.Suddenly it popped up in my recommendation.
Thank you for the course. It helped me to get a view on JAVA on a beginner level. Keep doing it
Should watch (3:28:38) Object Oriented Programming
Waiting for the course buddy.. 😊🤞🏻
Love from bangladesh sir.Great job.
Love from Bangladesh
Thank you for the modular and balanced presentation.
I voted for it and it's here now 😁✌️
Thanks for the tutorial!
Watching this after learning javascript this is like completely different language.
Nice course dude !!!!
You guys like can read my mind! Thanks🎉
Good Explanation
I learned first python then c++ now learning java.
I learned first C next python now Java
Would I prefer to start with java ? Any tips for me
Java, Ruby, Pearl are the languages that I wanna learn next.
Learn making money instead. 😂
All dying languages lol
@@QuOUseTERSEa they are not dead tbh
Ruby seriously 😂
on the 1 hour and 31 mints10 seconds after the %d is an excellent age to start programing when you are typing :string language =scanner.nextline(); you can instead type.:string language = scanner.next(); then it gives you the option to type what language do you prefer
😅
at 3:12:18 , the updated output is 10,6,4,8,2 ; shouldn't it be 10,6.2,8,4 ? can someone explain ?
Hi @Mahek Panchal. So I went back into the code and figured out the problem. You see, the last number of the original list is 2. On the third iteration the 1 in the list becomes a 2. So in the last iteration, when the code is looking for the index of 2, it finds two instances. One is at index 2 so the code multiplies that by 2 and ends up making it a 4. Thanks a lot for pointing it out. If it's still hard to understand, let me know.
More JAVA!! Great Video.
Wow I was just thinking about starting .Read my mind lol 😆
Thank you free code camp !
Thank you so much! You did an excellent job. 🎉 Enjoyed learning with you, Farhan.
Timeline for myself:
54:49
1:35:13
2:43:01
3:28:00
he is the best simply but perfactly cover everything in very short time . searching for his more content , fabulous man . Taka love from a Bangladeshi learner of you.
good content easy to follow , thanks ^_^
Excellent video, I have been watching, worth recommending
52:43
String 1 = "abc" will be equal to String 2 = "abc"
but new String 1 = "xyz" will NOT be equal to new String 2 = "xyz"
Wow Java is always a great language
When I'm lost sometimes, I try to always motivate myself to not focus so much on myself and be mindful of my surroundings. Also, I seek God's guidance because I know he has a better plan and purpose for me than I think. We need to be positive always and do not dwell on negativity. 🙂
You've help me a lot in my coding learning path. I want to start working soon to support all the effort you are making
Thanks for the video. Great help for refresh the memory.
Hi Beau, great job as always.
However I miss the chapters in the video
3:35:28 For a whatever reason, writing Period age instead of int age worked for me. Did that get updated or something?
thanks
Hello! Cool content, very good video! Thanks 👍👍👍
Good job....
YOU NEVER DESPAIR 🤝
Sir my kind request to you
Please make course on artificial intelligence and robotics
Please sir
Thank you so much for sharing your knowledge and expertise. I'm waiting for your next java tutorials.
Thanks a lot for this course it helped me a lot getting into java and it was done verry clearly, particularly the OOP part at the end !
why it says toString can not work with char. when I did "Arrays.toString(vowels)" at 2:01:28 in the video.
Why is the answer for the last ArrayList Index 2 4 and not 2? 3:12:40
Wooooww wooow wooww fresh new VIDEO!
anyone in June 2024?
Me 😂
☝
Yah
🤚me also
me in July 2024😂
Thanks For Giving Us Great Knowledge🥰🥰🥰
Thank you techer.
God sent i literally searched for this today
Here is it😆
Lol same here I was about to learn Java 😂
At 2:46:55 , shouldn't we write sum += numbers[number] in line 9 to sum the array?
Please do a advance level Java course. And couple of Java projects also. @freecodecamp
We need Spring boot course too
Fijn in nl vertaald love it thankyou very mutch ❤
Brother you're Bangladeshi? Your tutorial and your voice are really good.
Yes I am Bangladeshi. And thanks a lot for the kind words. 😊
great video. full of wisdom
woooaw another Bangladeshi instructor 😊😊😊😊
Please do a video on all design patterns in Java.
Thanks as always
There is a problem on code in 3:12:27 if you see at console you will see the problem I couldnt figured it out
Hi @Turan. So I went back into the code and figured out the problem. You see, the last number of the original list is 2. On the third iteration the 1 in the list becomes a 2. So in the last iteration, when the code is looking for the index of 2, it finds two instances. One is at index 2 so the code multiplies that by 2 and ends up making it a 4. Thanks a lot for pointing it out. If it's still hard to understand, let me know.
you guys are the GOAT