You are not logged in. Lock_open    

Browse tutorials by Category - Command Line

Array Index Out Of Bounds (Command Line) Time: 1:29 Gb Closedcaptioned
Average:
  • Currently 3.1/5 Stars from 164 ratings
  •  
  •  
  •  
  •  
  •  
164 ratings
Your Rating:
  • Currently 0.0/5 Stars from 164 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
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 Gb
Average:
  • Currently 3.1/5 Stars from 152 ratings
  •  
  •  
  •  
  •  
  •  
152 ratings
Your Rating:
  • Currently 0.0/5 Stars from 152 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
Categories: Compile Error Command Line
Description: click for more...

A program that generates “illegal start of type” and “ expected” error although the code looks OK.

Incompatible Types (Command Line) Time: 1:33 Gb
Average:
  • Currently 3.1/5 Stars from 182 ratings
  •  
  •  
  •  
  •  
  •  
182 ratings
Your Rating:
  • Currently 0.0/5 Stars from 182 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
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 Gb
Average:
  • Currently 3.0/5 Stars from 146 ratings
  •  
  •  
  •  
  •  
  •  
146 ratings
Your Rating:
  • Currently 0.0/5 Stars from 146 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
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 Gb
Average:
  • Currently 3.1/5 Stars from 159 ratings
  •  
  •  
  •  
  •  
  •  
159 ratings
Your Rating:
  • Currently 0.0/5 Stars from 159 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
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 Gb
Average:
  • Currently 3.0/5 Stars from 140 ratings
  •  
  •  
  •  
  •  
  •  
140 ratings
Your Rating:
  • Currently 0.0/5 Stars from 140 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
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 Gb
Average:
  • Currently 3.0/5 Stars from 185 ratings
  •  
  •  
  •  
  •  
  •  
185 ratings
Your Rating:
  • Currently 0.0/5 Stars from 185 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
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 Gb
Average:
  • Currently 3.0/5 Stars from 154 ratings
  •  
  •  
  •  
  •  
  •  
154 ratings
Your Rating:
  • Currently 0.0/5 Stars from 154 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
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 Gb
Average:
  • Currently 3.1/5 Stars from 163 ratings
  •  
  •  
  •  
  •  
  •  
163 ratings
Your Rating:
  • Currently 0.0/5 Stars from 163 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
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 Gb
Average:
  • Currently 3.0/5 Stars from 140 ratings
  •  
  •  
  •  
  •  
  •  
140 ratings
Your Rating:
  • Currently 0.0/5 Stars from 140 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
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 Gb
Average:
  • Currently 3.0/5 Stars from 153 ratings
  •  
  •  
  •  
  •  
  •  
153 ratings
Your Rating:
  • Currently 0.0/5 Stars from 153 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
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 Se
Average:
  • Currently 3.0/5 Stars from 145 ratings
  •  
  •  
  •  
  •  
  •  
145 ratings
Your Rating:
  • Currently 0.0/5 Stars from 145 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
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 Se
Average:
  • Currently 3.0/5 Stars from 143 ratings
  •  
  •  
  •  
  •  
  •  
143 ratings
Your Rating:
  • Currently 0.0/5 Stars from 143 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
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 Se
Average:
  • Currently 3.0/5 Stars from 148 ratings
  •  
  •  
  •  
  •  
  •  
148 ratings
Your Rating:
  • Currently 0.0/5 Stars from 148 ratings
  • 1
  • 2
  • 3
  • 4
  • 5
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.