diff --git a/src/teaching/dubstep/checkpoint1.html b/src/teaching/dubstep/checkpoint1.html index 4c44e262..46f72845 100644 --- a/src/teaching/dubstep/checkpoint1.html +++ b/src/teaching/dubstep/checkpoint1.html @@ -32,7 +32,7 @@ while((statement = parser.Statement()) != null){ } // End-of-file. Exit! -

At this point, you'll need to figure out what kind of statement you're dealing with. For this project, we'll be working with Select and CreateTable. There are two ways to do this. JSqlParser defines a Visitor>instanceof relation:

+

At this point, you'll need to figure out what kind of statement you're dealing with. For this project, we'll be working with Select and CreateTable. There are two ways to do this: Visitor classes, or the instanceof relation. We strongly recommend using instanceof:

if(statement instanceof Select) {
   Select selectStatement = (Select)statement;
   // handle the select