I need help to make this code to run please!! hsa.Console

Hello, I need help to make this code to run please. this is just a part of the code.
I have the imports below, but hsa.Console is not imported, I have tried to download de jar files for it but cannot find it. Is there a way I could make it work?

import hsa.Console;
import java.io.Console;

Console c;
Console d;

private void askData ()

  d.setCursor ((selection == -1) ? (2): ** // d.setCursor shows an error that says: cannot resolve method "setCursor" in "Console"**
     (3), 1);

  d.println (); **// same error here**

  if (selection2 != -1)
     d.setCursor ((selection == -1) ? (2):
        (3), 1);
  else

     d.clear(); **// same error here**
     d.setCursor (2, 1);

  if (selection == -1)

     d.println ("Please enter the first tower.");
     userInput = d.getChar (); **// same error here**
     if ((userInput - '0' > 3 || userInput - '0' < 1) && userInput != 'e' && userInput != 'E' && userInput != 's' && userInput != 'S')

        JOptionPane.showMessageDialog (null, "Error! Invalid range! The range must be between 1 and 3!");
        askData ();
        return;

     else
     if (userInput == 'e' || userInput == 'E' || userInput == 's' || userInput == 'S')
        return;
     d.println ((selection = (userInput - '0') - 1) + 1);

  d.print ("Please enter the destination tower.");
  userInput = d.getChar ();
  if (userInput - '0' > 3 || userInput - '0' < 1 && userInput != 'e' && userInput != 'E' && userInput != 's' && userInput != 'S')

     JOptionPane.showMessageDialog (null, "Error! Invalid range! The range must be between 1 and 3!");
     selection2 = -1; //Here.
     askData ();

  else
  if (userInput == 'e' || userInput == 'E' || userInput == 's' || userInput == 'S')
     return;
  d.println ((selection2 = (userInput - '0') - 1) + 1);
  if ((highlightIndex (selection, false, false) != -1 && highlightIndex (selection2, false, false) != -1 && board [((difficulty - (highlightIndex (selection, false, false)) == -1) ? (0):
     ((difficulty - highlightIndex (selection, false, false))))] [selection] > board [(difficulty - (highlightIndex (selection2, false, false)) == -1) ? (0):
     (difficulty - ((highlightIndex (selection2, false, false))))] [selection2]))

     selection = -1;
     selection2 = -1;
     JOptionPane.showMessageDialog (null, "Error! Invalid choices! You cannot place a big block over a smaller block.");
     askData ();
     return;