Browse tutorials by Category - Eclipse
Incompatible Types (Eclipse)
Time: 1:05
|
|
| Average: 61 ratings | Your Rating: |
| Categories: Conditional Compile Error Loop Eclipse | |
| Description: click for more...
What to do when you see an incompatible types compiler error in a loop condition or in the condition of an if statement. Shows the effect of using equals (=) instead of equalsequals (==), causing an assignment when you intend to have a equality comparison. |
|
Infinite Loop (Eclipse)
Time: 5:09
|
|
| Average: 49 ratings | Your Rating: |
| Categories: Loop Logic Error Debugging Process Eclipse | |
| Description: click for more...
Shows an infinite loop that occurs due to lack of update of a loop iterator inside an if statement in the loop. It identifies that an infinite loop is happening when the program does not seem to end. It then shows how to insert print statements to output the iterator value at the beginning of the loop, and then again at the end of the loop. |
|
Instance Variable Masking (Eclipse)
Time: 3:46
|
|
| Average: 84 ratings | Your Rating: |
| Categories: Logic Error Classes Eclipse | |
| Description: click for more...
Shows what happens when a local variable in a method has the same name as an instance variable in your class and provides 2 ways to fix this problem (instance variable masking). |
|
Java String Methods (Eclipse)
Time: 2:59
|
|
| Average: 85 ratings | Your Rating: |
| Categories: Strings Eclipse | |
| Description: click for more...
A short tutorial on working with string methods and dealing with the return value. Demonstration of the String substring and toUppercase methods. |
|
Linear Search of an Array (Eclipse)
Time: 9:08
|
|
| Average: 50 ratings | Your Rating: |
| Categories: Conditional Array Loop Logic Error Debugging Process Eclipse | |
| Description: click for more...
This video shows a program which is searching through an array, in a linear fashion, looking for a value. It has an if…else statement within a loop which assigns a boolean value to a variable called “found” every iteration of the loop (if theArray[index] == value). It shows that the code works for any value not in the array, but that it always reports “found” to be false, even for values that are in the array. By inserting print statements at the start of the if block and then in the else block, it shows that “found” is updated every iteration of the loop, potentially overwriting the assignment of true to “found.” |
|
Object Comparison (Eclipse)
Time: 4:15
|
|
| Average: 49 ratings | Your Rating: |
| Categories: Conditional Compile Error Eclipse | |
| Description: click for more...
Demonstrates the use of .equals (dot equals) to compare objects rather than == (Equals equals). The same equality comparison that works for primitives does not work for object types. |
|
Parameter Passing (Eclipse)
Time: 2:36
|
|
| Average: 44 ratings | Your Rating: |
| Categories: Logic Error Eclipse | |
| Description: click for more...
Demonstrates the pass by value parameter passing paradigm of Java. Shows how to sum values in an array in a method, passing back the total. This video will be helpful to you if you are passing a parameter to a method, and not getting the value you expect after the method is called. |
|
String Index Out of Bounds (Eclipse)
Time: 4:37
|
|
| Average: 46 ratings | Your Rating: |
| Categories: Runtime Error Logic Error Eclipse | |
| Description: click for more...
Shows a program that is counting the number of words in a Java String. The program gets a stack trace that shows a java.lang.StringIndexOutOfBoundsException. The program is run using Eclipse. Demonstrates how to read a stack trace. |
|
Using the Eclipse Debugger (Eclipse)
Time: 3:20
|
|
| Average: 54 ratings | Your Rating: |
| Categories: Debugging Process Eclipse | |
| Description: click for more...
A short tutorial on the basics of how to use the debugger to debug a program in Eclipse. |
|