0

help in understanding java

hi there, i need help in actually understanding Java because its too hard and my exam are close and i never did well in learning 😢

19th Apr 2025, 9:16 PM
sushi
sushi - avatar
4 Antworten
+ 3
sushi there is no easy way to understand java other than continue the path you are on with Introduction to Java then Java Intermediate .. It is pretty much the same as the tutorial on w3schools https://www.w3schools.com/java/ and learning more from https://www.tutorialspoint.com/java/index.htm advanced Java https://www.tutorialspoint.com/what-is-advanced-java
19th Apr 2025, 9:55 PM
BroFar
BroFar - avatar
0
If you can share what you're having trouble with someone could likely link you to some resources that would help.
20th Apr 2025, 9:46 PM
Tom Shaver
Tom Shaver - avatar
0
Ok, I can see that you haven't taken java intermediate yet so I'll touch on likely points of difficulty in intro to java 1. For loops and while loops In a while loop, the condition inside the parenthesis must be true for the loop to run. Here's an example while loop int i=0; while(i>0) {System.out.println(i); i--; } Here's a for loop for(int j=0; j<10; j++) { System.out.println(j); } The 1st statement in the for loop declares an integer and it's value, the second statement is the important one, the loop runs as long as the 2nd statement is true, and the 3rd statement simply increases j by 1. Arrays Arrays can be quite difficult to understand at first but I like to think of an array as a list of variables, when you need to access one of the variables in the array, you use it's position in the list Ex. array[position] Multidimensional arrays These can be trickier but think of it as an array of arrays Ex 2darray[0] [0] this will access the first element of the first array
26th Apr 2025, 4:29 AM
Luca
0
Cont. You can also think of 2d arrays in terms of grids where 2darray [0] [0] is the intersection of the first row and column. Methods Think of a method as a function, you write the code once and then you can call the methods as many times as you need to, I recommend reviewing this chapter a lot; also, use the internet to really grasp this concept as it is really important
26th Apr 2025, 4:32 AM
Luca