class TaskCreate {
  public static void main(String[] args) {<FILL_FUNCTION_BODY>}
}

    try (TektonClient tektonClient = new DefaultTektonClient()) {
      String namespace = "default";
      Task task = new TaskBuilder()
          .withNewMetadata().withName("read-task").endMetadata()
          .withNewSpec()
          .withNewResources()
          .addNewInput()
          .withName("workspace").withType("git")
          .endInput()
          .endResources()
          .addNewStep()
          .withName("readme").withImage("ubuntu").withScript("cat workspace/README.md")
          .endStep()
          .endSpec()
          .build();

      // Create Task
      task = tektonClient.v1beta1().tasks().inNamespace(namespace).create(task);
      System.out.println("Created: " + task.getMetadata().getName());

      // List Task
      TaskList taskList = tektonClient.v1beta1().tasks().inNamespace(namespace).list();
      System.out.println("There are " + taskList.getItems().size() + " Tasks in " + namespace);
    }
  
<no_super_class>