Browse tutorials by Category - Command Line
Array Index Out Of Bounds (Command Line)
Time: 1:29
|
|
| Average: 164 ratings | Your Rating: |
| Categories: Array Runtime Error Logic Error Command Line | |
| Description: click for more...
This video shows the runtime error that results when an index references beyond the end of an array. IT points out that one should always look both at the line number in a runtime error and the index listed in an ArrayIndexOutOfBounds error. This error is fixed by changing the constant index values which are used to index the array. |
|
Illegal start of type (Command Line)
Time: 1:42
|
|
| Average: 152 ratings | Your Rating: |
| Categories: Compile Error Command Line | |
| Description: click for more...
A program that generates “illegal start of type” and “ |
|
Incompatible Types (Command Line)
Time: 1:33
|
|
| Average: 182 ratings | Your Rating: |
| Categories: Conditional Compile Error Loop Command Line | |
| 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. |
|
Multiple Parameters and Return Values (Command Line)
Time: 10:00
|
|
| Average: 146 ratings | Your Rating: |
| Categories: Array Logic Error Command Line | |
| Description: click for more...
This video shows the problem of trying to return a value calculated in a method through a parameter, where the student is assuming that Java parameters are passed by reference. The video shows the process of returning two values from a method and how this can be accomplished with an array. |
|
No class definition found (Command Line)
Time: 1:54
|
|
| Average: 159 ratings | Your Rating: |
| Categories: Runtime Error Classes Command Line | |
| Description: click for more...
This video demonstrates a seemingly meaningless runtime error, which occurs when the name of the class is not the same as the name of the file. |
|
Not a Statement, Cannot Find Symbol (Command Line)
Time: 2:28
|
|
| Average: 140 ratings | Your Rating: |
| Categories: Compile Error Command Line | |
| Description: click for more...
Demonstrates 3 compiler errors; “not a statement”, “cannot find symbol” and “cannot be applied.” |
|
Null Pointer Exception (Command Line)
Time: 4:01
|
|
| Average: 185 ratings | Your Rating: |
| Categories: Array Pointers Runtime Error Command Line | |
| Description: click for more...
Demonstration of a runtime, “Null Pointer exception” ( java.lang.NullPointerException) error and points out how to get the line number from the runtime error. It points out that many null pointer exceptions occur when an object has not been instantiated. This particular example happens in the context of an array where the array itself has been instantiated, but the objects that are elements of the array have not been instantiated. |
|
Static Context (Command Line)
Time: 9:02
|
|
| Average: 154 ratings | Your Rating: |
| Categories: Compile Error Logic Error Classes Command Line | |
| Description: click for more...
The compiler generates a “non-static method X cannot be referenced from a static context” message. Shows what happens when a non-static method is called form the static main method. |
|
String Index Out of Bounds (Command Line)
Time: 3:05
|
|
| Average: 163 ratings | Your Rating: |
| Categories: Runtime Error Logic Error Command Line | |
| 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 a Unix command line and a text editor. Demonstrates how to read a stack trace. |
|
Unreported Exception (Command Line)
Time: 3:20
|
|
| Average: 140 ratings | Your Rating: |
| Categories: Compile Error Logic Error Command Line | |
| Description: click for more...
The compiler reports an “unsupported exception” and that it “must be caught or declared to be thrown.” |
|
While Loop Doesn't Execute (Command Line)
Time: 2:20
|
|
| Average: 153 ratings | Your Rating: |
| Categories: Array Loop Logic Error Command Line | |
| Description: click for more...
While loop that either loops continually and never stops, appears to execute once, or doesn’t execute at all. |
|
Array Index out of Bounds (kommandorad)
Time: 1:32
|
|
| Average: 145 ratings | Your Rating: |
| Categories: Array Runtime Error Command Line | |
| Description: click for more...
ArrayIndexOutOfBound Exception (Sweedish) När man kör programmet så får man ett ArrayIndexOutOfBoundsException meddelande, den här videon beskriver vad du ska leta efter för att hitta felet. |
|
String Index Out of Bounds (kommandorad)
Time: 8:32
|
|
| Average: 143 ratings | Your Rating: |
| Categories: Runtime Error Logic Error Command Line | |
| Description: click for more...
Visar på ett program som räknar antalet ord i en mening men som genererar ett StringIndexOutOfBoundsException när man kör det. Videon visar hur man läser ett stack trace för att hitta felet och vikten av att få logiska uttryck i rätt ordning. |
|
While-snurra exekveras inte (kommandorad)
Time: 7:14
|
|
| Average: 148 ratings | Your Rating: |
| Categories: Array Loop Logic Error Command Line | |
| Description: click for more...
Visar på ett program som tycks hänga sig när man kör det. Videon visar hur man använda sig av olika spårutskrifter för att försöka isolera felet. |
|