From 58d563f1764a7c98c597c0466105e27c5aeb0e5c Mon Sep 17 00:00:00 2001 From: Oliver Kennedy Date: Fri, 5 Feb 2016 19:11:32 -0500 Subject: [PATCH] Small checkpoint 1 typo --- src/teaching/dubstep/checkpoint1.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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