declare decision structure inside of a System.out.println
- by user2899249
So I am working on an assignment where I have to have a print method in a constructor that displays a distance.
I also have to have three separate get methods depending on what the input is in the demo class.
My question is that I am trying to write the print method to contain a decision structure based on which get is used.
public void prt()…