Buggy code:
class UI { private int num_uis ; private SQLHandler sql_handler ; private Scanner scan ; private Console con ; public String pub_email ; public String pub_role ; UI ( SQLHandler sql_handler , Console con ) { } public void GenerateViews ( ) throws SQLException { } public void WelcomeScreen ( ) throws SQLException { } public void Register ( ) throws SQLException { String email = "" ; String password = "" ; System . out . println ( "Registration<seq2seq4repair_space>(password<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>4<seq2seq4repair_space>(or<seq2seq4repair_space>less)<seq2seq4repair_space>alpha-numeric<seq2seq4repair_space>characters):" ) ; try { email = con . readLine ( "Email:<seq2seq4repair_space>" ) ; char [ ] pwArray1 = con . readPassword ( "Password:<seq2seq4repair_space>" ) ; char [ ] pwArray2 = con . readPassword ( "Confirm<seq2seq4repair_space>Password:" ) ; if ( Arrays . equals ( pwArray1 , pwArray2 ) ) password = String . valueOf ( pwArray1 ) ; else { System . out . println ( "Registration<seq2seq4repair_space>failed.<seq2seq4repair_space>Passwords<seq2seq4repair_space>do<seq2seq4repair_space>not<seq2seq4repair_space>match." ) ; return ; } } catch ( IOError ioe ) { System . err . println ( ioe . getMessage ( ) ) ; } if ( ! ( validEmail ( email ) ) ) { System . out . println ( "Registration<seq2seq4repair_space>failed.<seq2seq4repair_space>Invalid<seq2seq4repair_space>Email." ) ; return ; } else { String query = ( "select<seq2seq4repair_space>*<seq2seq4repair_space>from<seq2seq4repair_space>users<seq2seq4repair_space>where<seq2seq4repair_space>email='" + email ) + "'" ; ResultSet rs = sql_handler . runSQLQuery ( query ) ; if ( rs . next ( ) ) { System . out . println ( "Registration<seq2seq4repair_space>failed.<seq2seq4repair_space>User<seq2seq4repair_space>exists." ) ; return ; } } if ( ! ( validPassword ( password ) ) ) { System . out . println ( "Registration<seq2seq4repair_space>failed.<seq2seq4repair_space>Invalid<seq2seq4repair_space>Password." ) ; return ; } else { <START_BUG> String statement = ( ( ( ( "insert<seq2seq4repair_space>into<seq2seq4repair_space>users<seq2seq4repair_space>values('" + email ) + "'," ) + "'" ) + password ) + "sysdate<seq2seq4repair_space>)" ; <END_BUG> System . out . println ( statement ) ; sql_handler . runSQLStatement ( statement ) ; } String role = "user" ; pub_email = email ; pub_role = role ; MainHub ( ) ; scan . close ( ) ; } private void Login ( ) throws SQLException { } public void MainHub ( ) throws SQLException { } public void SearchForFlights ( ) throws SQLException { } private int printFlightPlans ( ResultSet rs , int planId , ArrayList < String > flightnolist , ArrayList < String > flightnolist2 ) throws SQLException { } public void MakeABooking ( String flightno1 , String flightno2 ) throws SQLException { } public void ExistingBookings ( ) throws SQLException { } public void BookingDetail ( String tno ) throws SQLException { } public void CancelBooking ( String tno ) throws SQLException { } public void Logout ( ) throws SQLException { } public void RecordDeparture ( ) throws SQLException { } public void RecordArrival ( ) throws SQLException { } public void RoundTrips ( ) throws SQLException { } private boolean validEmail ( String e ) { } private boolean validPassword ( String pword ) { } public static boolean isInteger ( String s , int radix ) { } public static boolean isValidDate ( String input ) { } private boolean validAcode ( String ac ) throws SQLException { } }

Fix:
String statement = ( ( ( ( ( "insert<seq2seq4repair_space>into<seq2seq4repair_space>users<seq2seq4repair_space>values('" + email ) + "'," ) + "'" ) + password ) + "'," ) + "sysdate<seq2seq4repair_space>)" ;