public static ArrayList<String[]> cars() {

		String JDBC_DRIVER = "com.mysql.jdbc.Driver";  
		String DB_URL = "jdbc:mysql://localhost:1234/cars";

		//  Database credentials
		String USER = "root";
		String PASS = "wps14042";

		Set<String> data = new HashSet<String>();
		ArrayList<String[]> data2 = new ArrayList<String[]>();

		ResultSet rs = null;
		Connection conn = null;
		Statement stmt = null;

		try{
			//STEP 2: Register JDBC driver
			Class.forName(JDBC_DRIVER);

			//STEP 3: Open a connection
			conn = DriverManager.getConnection(DB_URL, USER, PASS);



			stmt = conn.createStatement();
			String sql = ("SELECT Classification FROM cars");
			rs = stmt.executeQuery(sql);

			while (rs.next()) {
				String send = rs.getString(1);
				for (int i = 0; i < 24; i++) {
					data.add(send.split("\\| 2")[0].toString());
				}
			}

		}catch(SQLException se){
			//Handle errors for JDBC
			se.printStackTrace();
		}catch(Exception e){
			//Handle errors for Class.forName
			e.printStackTrace();
		}finally{
			//finally block used to close resources
			try{
				if(stmt!=null)
					conn.close();
			}catch(SQLException se){
			}// do nothing
			try{
				if(conn!=null)
					conn.close();
			}catch(SQLException se){
				se.printStackTrace();
			}//end finally try
		}//end try

		for (String dat : data) {
			data2.add(dat.replace(" ", "").split("\\|"));
		}

		return data2;

	}