

Get more lessons like this at
Learn how to program in java with our online tutorial. We will cover variables, loops, if else branching, arrays, strings, objects, classes, object oriented programming, conditional statements, and more.
Here we learn how to store instance variables as part of an object and learn how to use them and access them in the program.
source
Should we type "static" before we define a class aircraft, otherwise it will pop up error Error:(5, 32) java: non-static variable this cannot be referenced from a static context
These videos are fantastic. Thank you!
Microsoft Flight Sim is coded in Java, Colorized, circa 2008.
please where can i fined the exercises ???
Hi, I don't know if you or anyone else can help but my program is throwing this error:
Customer.java:108: error: invalid method declaration; return type required
customer(String firstNameIn, String lastNameIn){
^
1 error
It's all depends on the teacher I would say…..everybody is not a teacher. But you are. The explanation was great, I've tried several other videos on the same topic from different instructors but finally I stopped here.
Awesome and Thank you Sir! 🙂
this Chanel is a treasure of information
This video saved me from getting an F for my mid-term. You explained it way better than my instructor in college. Thanks!
where are the exercises?
Thank you so much. Your java videos helps a lot
By far the easiest to understand. Thanks and keep it up.
If you, for example, make a new Class in your package and want to access and save the data in an array (what type of model, how much space is in their, their line of production with a limit of 100). How would you do it? (or if there is a video which covers a similar problem please tell me). Thanks in advance!
I wish my java teacher would explain like you do. doing my assessment now based on your videos not on the books I re read twice over 200 pages of nothing.
What are you referring to when you say “the excersizes”
Finally i found someone who knows how to teach Java
Thank you ,you are a lifesaver man
How does one dynamically reference an object variable. I'm creating a ghetto Monopoly game in Java. I have a Position class and a Monopoly class that has my main in it. From the Monopoly class I have Position object variables for each place to land on. How can i dynamically reference Monopoly.mediterranean.owner dynamically so that I don't have to make an if statement for each individual place to land on?
I have something like below but haven't sorted how to get it to work.
if(Monopoly.meditteranean.available==true){//prompt whether to buy or not}
I'd have to make 26 statements this way
I want to be able to return the variable name from a method and reference it dynamically. Obviously what I have down below doesn't work but I think it demonstrates what I'm trying to do.
if(Monopoly.place(num).available==true){//prompt whether to buy or not}
public static String place(int num){
if(num==1){
return "mediterannean";
}
}
Just wanted to say thank you.
i wish all my lecturers could explain like you, Thank you, you're the best!!!
just wonder why you said that it is like a Hieratical thing at 5:20. most of them may be like this way as you said, but I just think of some exceptions like
Scanner sc = new Scanner(System.in);
do {…
…
…
System.out.println("DO YOU WANT TO CONTINUE ?(Y/N");
answer = sc.next();
}
while (answer.equalsIgnoreCase("Y"))
like here, the dot between the answer and method, obviously equalsIgnoreCase is just a method from other class, it is not a part of the answer itself.
Always enjoy your video, you make java more understandable than my professor lol
I count on your video to pass the class
but this point just makes me so confused.