hi bro, may I know why you created a constructor that didn't instantiated any value? Is it for the purpose for easy demonstration? In standard practice should we do something like this, and if so what do we us it for? Thank!
I study in software engineering major, ive had the program language and advanced program language classes before, which is about the c++ language, and all they taught me was the if statements and the for loops and printing stuff out and taking stuff from the user input. So far ive watched your java course and ive already learned like 10 times more than what they taught me in university. You have no idea how thankful i am for this course. Thanks for real. ❤
@@vocodeex you'd be surprised, my university hasn't taught me anything that I haven't already learned in high school. I can learn more in 5 minutes from youtube than what I'd learn in a year on my course.
I've learned more from even just your first twenty eight videos in this playlist than I did in the entire semester Java class I just finished taking....thanks! Definitely will be working my way thru your whole series
I've completed the Codecademy Java course, I'm well into a Udemy course too and by watching the first 28 of your videos I've probably learnt more, in possibly less time. One could say it's reinforcement of what I've learnt but I have no doubt I've picked up a huge amount through your videos. Thanks so much for the effort you went to.
A really great aid in learning Java with clear, simple examples illustrating each topic, and an in-depth, engaging presentation by the instructor. One very helpful feature is the code samples accompanying each video. I copy these into Eclipse and play around with making changes and learning from them. For a free "course" in Java, BroCode Java is the best among all others I have tried. I give it an A+. Thank you "Bro".
I am still watching your videos and I am very glad that I found your channel. I am generally leaving a comment under your videos to support your channel. have a good luck
IF anyone is confused why he did not assign number in the DiceRoller constructor to 0 its because in java when you intitialize an int it is automatically assigned 0.
This is very clear, thank you. The problem I ran into is that a method could not change a global variable (or to be precise, 3). This was probably a problem with how they were declared then. The method was public static and so were the variables. They were all within the main class, though. But a return statement could only give back 1 result and any others, or if i did not use a return statement, it wouldnt change them outside of the method's scope. I think that is how you call that. Sorry if it is a little vague. I ran into the issue a couple days ago and I have since rewritten that part of the code I was practising with, but my mind is still half working on that issue. I'm just confused about why it did not work. Since it's been some days and I don't have the original code block anymore though, I may even be misremembering it. Super helpful, I know. EDIT: I realise I sometimes pass global variables as a parameter as well... it being useless aside, can it cause issues?
Thanks so much bro. Just wondering if there's actually any difference between the 2 approaches shown (declaring locally and passing as arguments to a method vs. creating global variables that can be accessed anywhere), in terms of memory use and/or any other practical considerations? Are there certain common situations/use-cases I could run into that may warrant using one way over the other, or do we just decide based on individual applications each time? Cheers, much love
im learning coding by my self thanks to ur videos, thanks a lot. i've accomplished so much in just few weeks and it makes me hope i'll be able to work in this field "soon". u made me fall in love with coding and i cant wait to learn c, c++ and other lenguages. thank you so much for your work and your passion
Java like other language such as C and C++ doesn't have the concept of Local and Global variables as Java is a strictly Object Oriented Language. There are 2 scope defined by Java, one defined by the class and another defined inside the method. P.S - I am not pointing out, I have learnt a great deal from you and love all your videos.
I understand the point about the global and local variables, but I need to rewatch the video to gatch the idea of your program. I am not a native speaker like you LOL😜.
This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro
How can I now use the result of the dice roll? I created a SecondDiceRoller class that extends DiceRoller and only use that object in the Main class (i.e., SecondDiceRoller diceRoller2 = new SecondDiceRoller(); ), giving back two numbers. But what if I want to add those numbers together and use that result to compare against subsequent rolls (if you haven't guessed, I'm trying to make a craps game!).
You don't get them girls loose, loose You don't get the world loose, loose You don't get money, move, move But I do, I do I said, y'all having a good time out there? Yeah, yeah, yeah, que no pare la fiesta Don't stop the party
//**********************************************
public class Main {
public static void main(String[] args) {
//local = declared inside a method
// visible only to that method
//global = declared outside a method, but within a class
// visible to all parts of a class
DiceRoller diceRoller = new DiceRoller();
}
}
//**********************************************
import java.util.Random;
public class DiceRoller {
Random random;
int number;
DiceRoller(){
random = new Random();
roll();
}
void roll() {
number = random.nextInt(6)+1;
System.out.println(number);
}
}
//**********************************************
hi bro, may I know why you created a constructor that didn't instantiated any value? Is it for the purpose for easy demonstration? In standard practice should we do something like this, and if so what do we us it for? Thank!
understood nothing
I study in software engineering major, ive had the program language and advanced program language classes before, which is about the c++ language, and all they taught me was the if statements and the for loops and printing stuff out and taking stuff from the user input. So far ive watched your java course and ive already learned like 10 times more than what they taught me in university. You have no idea how thankful i am for this course. Thanks for real. ❤
Interesting, at our University's CS program, variable scope is one of the major content for our first 2 intro courses.
how is it possible that a university software engineering couse does not teach variable scope
@@vocodeex you'd be surprised, my university hasn't taught me anything that I haven't already learned in high school. I can learn more in 5 minutes from youtube than what I'd learn in a year on my course.
@@z1nai i can do that too but variable scope is important for programming. Its interesting.
I've learned more from even just your first twenty eight videos in this playlist than I did in the entire semester Java class I just finished taking....thanks! Definitely will be working my way thru your whole series
I've completed the Codecademy Java course, I'm well into a Udemy course too and by watching the first 28 of your videos I've probably learnt more, in possibly less time. One could say it's reinforcement of what I've learnt but I have no doubt I've picked up a huge amount through your videos. Thanks so much for the effort you went to.
well explained,thank you for sharing
A really great aid in learning Java with clear, simple examples illustrating each topic, and an in-depth, engaging presentation by the instructor. One very helpful feature is the code samples accompanying each video. I copy these into Eclipse and play around with making changes and learning from them. For a free "course" in Java, BroCode Java is the best among all others I have tried. I give it an A+. Thank you "Bro".
Thanks for getting me started on my developer journey
great video!!! I'm infinitely grateful for your dedication and big heart to share this knowledge with the world. Thank you soo much
You are a great teacher of all time... 🥰
I am still watching your videos and I am very glad that I found your channel. I am generally leaving a comment under your videos to support your channel. have a good luck
IF anyone is confused why he did not assign number in the DiceRoller constructor to 0 its because in java when you intitialize an int it is automatically assigned 0.
It,s greate to be here with Bro Code, I've learned a lot 👍
thank you so much all of your lessons.
This is very clear, thank you. The problem I ran into is that a method could not change a global variable (or to be precise, 3). This was probably a problem with how they were declared then. The method was public static and so were the variables. They were all within the main class, though.
But a return statement could only give back 1 result and any others, or if i did not use a return statement, it wouldnt change them outside of the method's scope. I think that is how you call that.
Sorry if it is a little vague. I ran into the issue a couple days ago and I have since rewritten that part of the code I was practising with, but my mind is still half working on that issue. I'm just confused about why it did not work. Since it's been some days and I don't have the original code block anymore though, I may even be misremembering it. Super helpful, I know.
EDIT: I realise I sometimes pass global variables as a parameter as well... it being useless aside, can it cause issues?
Thanks so much bro. Just wondering if there's actually any difference between the 2 approaches shown (declaring locally and passing as arguments to a method vs. creating global variables that can be accessed anywhere), in terms of memory use and/or any other practical considerations? Are there certain common situations/use-cases I could run into that may warrant using one way over the other, or do we just decide based on individual applications each time? Cheers, much love
im learning coding by my self thanks to ur videos, thanks a lot. i've accomplished so much in just few weeks and it makes me hope i'll be able to work in this field "soon". u made me fall in love with coding and i cant wait to learn c, c++ and other lenguages. thank you so much for your work and your passion
Thanks
Java like other language such as C and C++ doesn't have the concept of Local and Global variables as Java is a strictly Object Oriented Language.
There are 2 scope defined by Java, one defined by the class and another defined inside the method.
P.S - I am not pointing out, I have learnt a great deal from you and love all your videos.
thankyou so much
thanks
I understand the point about the global and local variables, but I need to rewatch the video to gatch the idea of your program. I am not a native speaker like you LOL😜.
Droping a comment as a prayer to youtube algorithm.
I like your video Bro..
I am From
(Bangladesh)
you make java easy🎉🎉thanks
thank you very much bro
Thanks for the video
nice
best playlist on java
This is the best Java tutorial for beginners, so you can learn Java and English in one hit. Please keep going! I vote for Java advance tutorial. Thanks a lot Bro
Should we use this.random like it was told in the previous video?
Great video 🎉
Nice
Done
Thanks alot
my bro
Capo!!!
would be good if these lessons could be named by number...
you man are a legend
❤❤
great videos
Thanks, bro.
So helpful! Thank you!!
nice video loved it
NIce.
How can I now use the result of the dice roll? I created a SecondDiceRoller class that extends DiceRoller and only use that object in the Main class (i.e., SecondDiceRoller diceRoller2 = new SecondDiceRoller(); ), giving back two numbers. But what if I want to add those numbers together and use that result to compare against subsequent rolls (if you haven't guessed, I'm trying to make a craps game!).
great🙌
Haven't seen a single one of your videos yet but had to subscribe as soon as I read the username.
thank you so much bro. it's very helpful
ty
Liked
Thank you very much!! Bro
done
thank you sir
Hey you, you are saving my grade. Thanks 🙏
awesome course! comment for stats.
why do we need to call roll method in our constructor?
Thank you so much sir
thanks bro
thanks a lot bro
Ένα ακόμα σημαντικό θέμα για την εκμάθηση της γλώσσας Java, είναι η εμβέλεια (scope) των μεταβλητών (variables).
Thanks, Bro!
👍
that is Brosome broooo.....
Thanks, Bro! ☕ You're awesome!
thx 4 vid bro !
thanks!!
best brio
360 bro scope
You don't get them girls loose, loose
You don't get the world loose, loose
You don't get money, move, move
But I do, I do
I said, y'all having a good time out there?
Yeah, yeah, yeah, que no pare la fiesta
Don't stop the party
Hello, I can't find the video it's about break and continue
Thanks Bro :)
When I subscribe I become local
like
learm
Thanks Bro, 06/07/2024
lets defeat the algorithm
defeat the algorithm!
Hi Sir Can ask a copy of code for all project? Thank you in advance.
it is already in the video's decription
man it's giving main method public static void main error, how do i fix it?
Still a confusing topic to me but what ever
Have you tasted Bro Code
I am getting an error that symbol not found on the code:
DiceRoller diceRoller = new DiceRoller();
Help me out.
u have to create new fille as class with name DiceRoller
vedio 27
almost forgot thank you
Hey bro, please verify your channel to brave creator so I can give you some tip.
comment
/ech Wn parm by: 2''x avpxn x 4''x fos vk hlf mrk thrm~tmp array eml floch op lk buoy/
/othr hlv mrk IC mol |avpn| IC''x < vk chrtz HUD/s ech~mrkr buoy ~ i.e. tmp array/
/kolmn parm mol 8''xfrch orb kntrol < buoy thrm 2''x hlvsz vk [tdT(x''~tmpr R floch run op)]/
/krch spdy wb mrkx i.e. array Wn eml~bwlch stapach < paavlow avpxn chrk lokon/
/4''x rwch vk flsh ray~tmp Lt up < fos kolmn < parm jrrpx floch op buoy insrt - frch skop/
Thanks
nice
thanks bro
👍
nice