I want to have a method in java to create sqlite tables without knowing the number of columns

```
public static void createNewTable(String databaseName, String tableName, String typeOfAttribute1, String attribute1) {
        // SQLite connection string
        String url = "jdbc:sqlite:" + databaseName;

        // static SQL statement for creating a new table
        String sql = "CREATE TABLE IF NOT EXISTS "+ tableName + " (" + attribute1 + " " + typeOfAttribute1 + ");";

        try (Connection conn = DriverManager.getConnection(url);
                Statement stmt = conn.createStatement()) {
            // create a new table
            stmt.execute(sql);
        } catch (SQLException e) {
            System.out.println(e.getMessage());
        }
    }

```

In this specific case i'm forced to create a table with only one column (attribute1). Is possible to have a more reusable approach and create a table without knowing the number of the columns?
I hope that everything is clear