free web page hit counter
🛡️
Copyright Notice: This video is officially sourced and embedded from YouTube. For all copyright inquiries, reports, or removals, please contact YouTube's legal team here.
freeCodeCamp.org

freeCodeCamp.org

11,800,000 subscribers

⏱ 👁 1,864,781 views

Java Programming for Beginners – Full Course

Video Overview & Insights

Learn the Java programming language in this complete beginner's course. You will learn all the main features of Java (version 17) and how to use Java for your own projects.

“

1:19:22

— @SahilGhosh

🔗 Code along on Replit: https://join.replit.com/java-students

✏️ Farhan Hasin Chowdhury created this course.

“

It's really pissimg me off that you are taking the cursor at the end each time.

— @SahilGhosh

🏗 Replit provided a grant that make this course possible.

🔗 https://www.freecodecamp.org/news/how-to-use-arrays-binarysearch-in-java/

“

Now i know what to tell Ai to do for me...

— @anyiamvictor

🔗 https://www.freecodecamp.org/news/programming-naming-conventions-explained/

⭐️ Contents ⭐️

“

Still a good course just use OneCompiler instead of replit

— @BEARCLIPPER

⌨️ (0:00:00) Hello World

⌨️ (0:06:39) Variables

“

Please carefully look at 03:12:05
[5, 3, 1, 4, 2]
[10, 6, 4, 8, 2]

You can see after double following become:
5->10
3->6
1->4 (issue)
4->8
2->2 (issue)

By the way, logically it's correct as the `indexOf` is used. If it would work with `index` then it would be fine.

— @anojitghosh854

⌨️ (0:13:12) Data Types

⌨️ (0:20:27) Operators

“

like

— @ChenfeiZhao-h5g

⌨️ (0:47:33) Strings

⌨️ (1:16:42) User Inputs

“

finally now I know the basics of Java the basics of the basics by the basics

— @ozair8896

⌨️ (1:35:13) Conditional Statements

⌨️ (1:46:38) Switch Cases

“

so replit updated and it looks like a AI tool now

— @mr.mikeygaming3723

⌨️ (1:55:59) Arrays

⌨️ (2:27:45) For Loops

“

Replit is now returning to the AI ​​page.

— @mehmetcemilnuralp

⌨️ (2:47:22) While Loops

⌨️ (2:50:20) Do...While Loops

“

Thanks to you Guys!

— @ViduraRvs

⌨️ (2:52:02) ArrayLists

⌨️ (3:12:25) HashMaps

“

12:35

— @2mtech94

⌨️ (3:28:38) Object Oriented Programming

🎉 Thanks to our Champion and Sponsor supporters:

“

Writing in 2026, but unfortunately replit is now steamed into a ai generation for coding creations :(
no longer an online ide
create course anyways! learnt more than i did in a year of college lol

— @caitlinward3546

👾 Raymond Odero

👾 Agustín Kussrow

“

Bengali Guy wow

— @cjmiraj

👾 aldo ferretti

👾 Otis Morgan

“

I thanks the guy for his work doing this course.

But the truth has to be said. This course at best can teach you to write java code snippet. in no way it teach to develop anything in java. not even a simple app.

Because with this course you don't know how to develop java app. you just learn to write java code snippet.

— @walkingturtle6646

👾 DeezMaster

--

“

1. Byte 2⁷-¹
2. Short 2¹⁵-¹
3. Int 2³¹-¹
4. Long 2⁶³-¹

— @KeiEstate

Learn to code for free and get a developer job: https://www.freecodecamp.org

Read hundreds of articles on programming: https://freecodecamp.org/news

“

Because i want springboot.

— @mr.RAND5584

❤️ Support for this channel comes from our friends at Scrimba – the coding platform that's reinvented interactive learning: https://scrimba.com/freecodecamp

“

As a Bangladeshi i feel so proud. Thank you Farhan sir.

— @sudo_ash

More User Perspectives

@

Hi Im struggling to create a new repli, the website has also changed, are yoll still supported by these people?

@khombisiledumakude7699
@

u missed the casing for array u can use
Arrays.compare(numbers, copyNumbers, String.CASE_INSENSITIVE_ORDER)

@streamethiopia
@

This was a great Java course, though I think it might be a bit too advanced for someone who's using it as their first programming course. It's for people who already have experience with other languages like python and they want to learn Java

@mamellomolokwane1762
@

bangladeshi❤❤

@mdnahiduzzamannoman
@

Thank you for this course! , really helped me with learning!

@aryanvohra626
@

The error in output of ArrayList<Integer> forEach loop at 3:11:59 is because while executing the loop, when you reach index 2 whose value is 1, the compiler doubles it to 2 making the array [10, 6, 2, 4, 2]. Later, when iterating over the original 2, indexOf(2) finds the first 2 (at index 2), not the last one (at index 4), so it modifies the wrong element. Since we are using indexOf which relies on the fact that there should be no duplicates, it fails when there are 2 numbers of the same value (2) in the ArrayList. Hence it's suggested to use replaceAll which does it in place instead of one by one, but I think this could have been avoided by using numbers in the array like [1, 3, 5, 7, 9] which made sure that there's no overlap in the original numbers and their doubled numbers.

Also, if you are trying this in 2026, replit has changed their UI and now you need to go to Developer Frameworks, choose Java and click on Remix. Hope this helps!

@KanadGodse
@

repit is an AI app making website right now q_q

@wot7299
@

Farhan lunch it technologies

@Rafa-j7x3f
@

except for forEach while explaining arraylist , everything else in this lecture is all correct , Farhan sir is a really good teacher , I understood java so well , I had been coding in python , javascipt , c already so it was a lot easier for me to learn java, i didn't took much time for me to grab things

@Studypoint1915
@

Thanks to FreecodeCamp and Farhan Hasin Chowdhury for this course.

@TechRapide
@

1.5X works like Magic ,try it...

@brainybeast3471
@

thank you! you made this easy to understand

@ArlindBogdaniry
@

anyone in 2025 and seeing a different replit layout?

@shantearausa7520
@

I have not found replit

@BilaYoda
@

Nice

@YoyoJoy-n1f
@

he's def from bangladesh. proud of you brother!!

@ZenocydeQuinn
@

anyone in 2025

@DionMathe
@

amazing😍🤩🤩🤩🤩🥰

@walidlahboub-d3k
@

i'm glad i found this video , now i'm little bit confident.

@harshit1658
@

Horrible Accent, I couldn't tolerate hearing this guy for 4 hours

@jauaa4135
@

Thank you so much! 4hrs went by so fast thanks to your teaching skills. I feel so confident in not only Java, but programming in general.

@zia.us8881
@

12:25 DO NOTTTTTTT REDEEEEEEEEMMMMMM

@xBunbunbun
@

for the people who learn java basic
i would suggest or tell this channel teaches in a complex way

just see some better channel
dont waste your 4hrs

@tttttt-gd8ik
@

3:36:49 Period.between() returns a Period Object, not an int.

@InperraMateria
@

1:46:23 CARRY ON FROM HERE

@Kingzombiemyanmar
@

I would have truly used this course...
If only I could tolerate hearing another indian guy.

@shapelessed
@

there's is error at https://youtu.be/A74TOX803D0?t=11534 ,the arraylist o/p is coming out as [10,6,4,8,2] but according to the logic which you applied it should be [10,6,2,8,4]

@UserNew_youtuber123
@

This was an inefficient course. Do not think twice beginner. Go for the 12hour courses, don't waste time.

@KamiKillerzoid-cx5fm
@

I love java

@KamiKillerzoid-cx5fm
@

I love free code camp,God bless you all and your family and friends.
Stay blessed 🎉🎉🎉❤🎉❤🎉❤🎉❤🎉❤🎉❤🎉❤🎉

@davidalex684
@

Good teacher!

@TitanGriffins
@

Hello, thanks all of you guys .... for the lesson but want what I'm build with java because I'm lost

@emmanuartmoz
@

Thanks a lot ! It was great:)

@chaispec