lemansky

Untitled

Nov 24th, 2020
513
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         String name = jFirstNameField.getText();        
  2.         String fam = jLastNameField.getText();
  3.         String title = jTitleField.getText();
  4.         String city = jCityField.getText();
  5.         String country = jCountryField.getText();
  6.         String reportsTo = String.valueOf(jReportsToBox.getSelectedItem());
  7.        
  8.         String[] columnsArray = {"FirstName", "LastName", "Title", "City", "Country", "ReportsTo"};
  9.         query.insert(columnsArray, new String[]{name, fam, title, city, country, reportsTo}, "Employees");
RAW Paste Data