public static void main(String args) In Java - What is String args?

Поділитися
Вставка
  • Опубліковано 31 тра 2023
  • $1,000 OFF ANY Springboard Tech Bootcamps with my code ALEXLEE. See if you qualify for the JOB GUARANTEE! 👉 bit.ly/3HX970h
    In this video, I show you what String[] args means in the main method:
    public static void main(String[] args) {}
    String[] args is just a variable you can use in the Main method! It's an array of Strings that gets passed through the main method when it gets run. There are a few ways to do that, which I show you in this video :)
    I hope you enjoyed this tutorial on what "args" is in public static void main(String args) in Java!!
    Full Java Tutorial For Beginners Playlist: • Full Java Course by Al...
    Free Tips: bit.ly/3U6HXcb
    Disclosure: The Springboard link provided is linked to my affiliate account & supports the channel.
    ~
    Alex Lee

КОМЕНТАРІ • 45

  • @alexlorenlee
    @alexlorenlee  7 місяців тому +2

    If you’re new to programming but want a career in tech, I HIGHLY RECOMMEND applying to one of Springboard’s online coding bootcamps (use code ALEXLEE for $1,000 off): bit.ly/3HX970h

  • @light_skit
    @light_skit Рік тому +6

    I just started learning Java like 2 weeks ago, it’s awesome that you have so many tutorials I’ve been just absorbing the knowledge. It’s much appreciated 🙏

  • @Ginger5754
    @Ginger5754 Рік тому +2

    I am so glad you're back! Thank you from all of us unprivilaged by life! Greetings from Poland ❤

  • @Shelby_itachi
    @Shelby_itachi Рік тому +2

    Java tutorials king is back.🎉👍👍👍
    Love from India 🇮🇳 ❤😁

  • @yaprak_sarma
    @yaprak_sarma Рік тому +3

    i have been wondering about the use of the args array and now i know!! thanks

  • @Winter_337
    @Winter_337 Рік тому +3

    Been wondering about this since I started Java a few years ago, thank you! The CLI demonstration really helped me understand a few CLI apps I have on my system, very nice!

  • @memeingthroughenglish7221
    @memeingthroughenglish7221 Рік тому +1

    So excited to see a new Java tutorial from you!! This made my day! This is literally my favorite UA-cam channel and hobby! 😂❤

  • @notfunny6956
    @notfunny6956 Рік тому +5

    Yayy more java tutorials

  • @desertedislander
    @desertedislander Рік тому +1

    I've learned so much from your videos. You make Java approachable for the average Joe. Thanks man!

  • @user-nu6dt7zq9n
    @user-nu6dt7zq9n 7 місяців тому +2

    You are helping me so much this semester. You changed my hate and disdain for java into something I'm truly curious about and growing to like more each day. Its 5 am I cant sleep and i am watching your video 😂😂😂 not because a pressing assignment is due but just to learn. I wish there was a way to individually book with you for hands on help on different projects or a way to suggest topics. I hope you continue to make content and find new and engaging ways to bring the material across. Thank you!

    • @alexlorenlee
      @alexlorenlee  7 місяців тому +1

      Thank you so much, this means so much to me! Programming is supposed to be fun, so I'm so glad to hear you're enjoying it :)

  • @decaTRT
    @decaTRT 10 місяців тому

    Thank you for all of your help. Had to learn java in less than a week for a job interview (already sort of familiar with programming). And you have prepared me more than I could ever repay you. Teaching is a talent of yours and can't express my gratitude enough. Even if I don't get the job I've gained so much knowledge in such a short amount of time, forever grateful. Thank you and you will succeed in anything you choose to pursue!

  • @user-qu3ue5dg2q
    @user-qu3ue5dg2q Рік тому +1

    I used to watch your videos a few years ago they helped me with understanding a lot of my subjects in java. Now I graduated and just wanted to thank you for providing and spreading these beneficial videos to everyone ^_^...Thank you Alex!!

  • @sarkar_957
    @sarkar_957 Рік тому +2

    Great explanation 😃...thank you!

  • @challa_kamalesh
    @challa_kamalesh Рік тому +2

    Great job Alex ❤

  • @richirod1993
    @richirod1993 Рік тому

    Thank you Alex, best videos out there

  • @NatyTor
    @NatyTor Рік тому

    So cool man, i just going to my pc to try it now!!

  • @marko8640
    @marko8640 Рік тому +1

    Alex?! Is that really you? 😊 Welcomeback!

  • @aislofi
    @aislofi Рік тому

    He is BACK!!!

  • @poorpanda9033
    @poorpanda9033 10 місяців тому

    Thank you!! More java videoss

  • @jamesvowles1
    @jamesvowles1 Рік тому

    Thanks for helping me understand what String[] args is! I was just thinking what would happen if I printed the args array…. thank you!

  • @PDSshinigami
    @PDSshinigami Рік тому +2

    you are making videos again🙂🙂 I'm about to pass my Advance OOP module with distinctions

  • @yozoramikazuki8350
    @yozoramikazuki8350 10 місяців тому

    Thank you

  • @SG007TN
    @SG007TN Рік тому

    Hi Alex , can u do a series on S.O.L.I.D principles

  • @nezhabouguerza8743
    @nezhabouguerza8743 11 місяців тому

    thank you

  • @waimoe1233
    @waimoe1233 Рік тому

    Since I started learning Java, I watched your videos. I'm in my junior HS but yeah I love coding. And I'm just wondering if you can make a vd about how to memorize Java projects or making own projects without looking back again. I would be really appreciate if you made it.

  • @jieclarkdev
    @jieclarkdev Рік тому

    Welcome sir

  • @katypacheco5112
    @katypacheco5112 8 місяців тому

    What if I want to use a file.txt in arguments, how would you do it?

  • @JBeyBi
    @JBeyBi Рік тому

    Hello just want to ask why i always got this error java.lang.module.findexception in eclipse. everytime i open the application this is always showup. is this fixable? or bcuz of my computer i used? i use the buildpath instruction i watch in youtube

  • @olasuccess7118
    @olasuccess7118 6 місяців тому

    I just got admission into Computer Science Department and I want to start practicing Java programming at home. pls what is the name of the software you are using for the java programming so I can install it on my computer for practice?

  • @lordender_kitty_official
    @lordender_kitty_official Рік тому

    nothing against Eclipse but have you ever considered using IntelliJ IDEA or at least trying it out?
    im not a long time viewer of your channel so i don't know if you've done anything like that on here but just thought i should put it out there because Eclipse seems a bit like a thing of the past and IntelliJ is a lot newer feeling and user friendly.

  • @69k_gold
    @69k_gold 11 місяців тому

    I see why the executable (or class file argument) itself isn't taken unlike in C/C++. Because the file has the same name as the main class :)

  • @nesuleo1779
    @nesuleo1779 Рік тому

    Are you back on giving Java lessons? Tell me yes pls!!! 😊

  • @gibsonnate5078
    @gibsonnate5078 Рік тому +1

    Can you do tutorial on AI🤔

  • @mheldss8546
    @mheldss8546 Рік тому

    Early sir alex

  • @garrysingh4484
    @garrysingh4484 Рік тому

    👍
    I am working on a small Java Project that does few things. Now i am nearly finished on this project & its working as expected.
    I want to make this Project into an App (Native installable App for Mac, Linux and Windows) - I also want to include the minimal jdk required to run this App after Install for each Operating System.
    I know there are better ways to make an app than "Java App" but since its a small app and works flawlessly, i just want to build it.
    Jpackage is preferred tool i guess but i don't know how to include the required files like jdk, icon or an image.
    Can you make a simple tutorial on how to make native Java app Installer for Mac, Windows or Linux (Including jdk) ??

  • @dorianxonic
    @dorianxonic 2 місяці тому

    Makes sense why this is not taught when you’re just starting with Java.

  • @jsviolet
    @jsviolet Рік тому

    Something you won't ever get bored watching 🪻

  • @thandolwenkosinzimande818
    @thandolwenkosinzimande818 7 місяців тому

    Thank you