title: My DecagonalPrismApp won't print the output
body: <p>I can't get the output to print, I've tried many diff. things to try and get it to print but it won't work. It's supposed to print error messages if I put in a negative # for height or edge. Also the output for valid #'s won't print either. I'm not sure where to put the block of code for that one. Can someone help me?</p>
  <p>My Program: <a href="https://pastebin.com/D8FQv1yR" rel="nofollow noreferrer">https://pastebin.com/D8FQv1yR</a></p>
  <pre><code>import java.util.Scanner;
  /**
   *The App for the Decagonal Prism program.
   * @author Kathleen Tumlin - Fundamentals of Computing I - 1210
   * @version 9/17/21
   */
  public class DecagonalPrismApp {
   
     //fields
     String label = &quot;&quot;;
     double edge = 0;
     double height = 0;
     double edgeIn = 0;
     double heightIn = 0;
   
     // constuctor   
    /** Shows public decagonal prism, setLabel, and setEdge.
     * @param labelIn takes input for label in the constructor.
     * @param edgeIn takes input for the edge in the constructor.
     */
     public DecagonalPrismApp(String labelIn, double edgeIn, double heightIn) {
        setLabel(labelIn);
        setEdge(edgeIn);
        setHeight(heightIn);
     }   
   
    //methods 
    /** Shows the return for label variable.
     * @return returns the label variable.
     */
     public String getLabel() {
        return label;
     }
   
    /** Shows the set label.
     * @param labelIn takes the labelIn for the method.
     * @return returns the boolean if the variable was set.
     */
     public boolean setLabel(String labelIn) {
        if (labelIn != null) {
           label = labelIn.trim();
           return true;
        } else {
           return false;
        }
     }
   
    /** Shows the return for the edge variable.
     * @return returns the value for the variable edge.
     */
     public double getEdge() {
        return edge;
     }
   
    /** Shows the set edge.
     * @param edgeIn takes the edgein and sets it as the edge variable.
     * @return returns the boolean if the variable was set.
     */
     public boolean setEdge(double edgeIn) {
        if (edgeIn &gt; -1) {
           edge = edgeIn;
           return true;
        } 
        else {
           System.out.println(&quot;Error: edge must be non-negative.&quot;);
           return false;
        }
     }
   
     /** Shows the return for the height variable.
      *@return returns the value for the variable edge.
      */
     public double getHeight() {
        return height;
     }
   
    /** Shows the set height.
     * @param heightIn takes the heightin and sets it as the height variable.
     * @return returns the boolean if the variable was set.
     */   
     public boolean setHeight(double heightIn) {
        if (heightIn &gt; -1) {
           height = heightIn;
           return true;
        } 
        else {
           System.out.println(&quot;Error: height must be non-negative.&quot;);
           return false;
        }
     }
   
     public void start() {
        do {
           System.out.print(&quot;Error: height must be non-negative.&quot; );
        } while (heightIn &gt; -1);
   
        do {
           System.out.print(&quot;Error: edge must be non-negative.&quot; );
        } while (edgeIn &gt; -1);
     }
     public static void main(String[] args) {
     /**
      *Shows what prints.
      * @param args not used.
      */
        Scanner scan = new Scanner(System.in);
        System.out.println(&quot;Enter label, edge, and height length for a &quot;
           + &quot;decagonal prism.&quot;);
        System.out.print(&quot;\tlabel: &quot;);
        String label = scan.nextLine();
   
        System.out.print(&quot;\tedge: &quot;);
        double edge = scan.nextDouble();
   
        System.out.print(&quot;\theight: &quot;);
        double height = scan.nextDouble();  
   
     }
  }
  </code></pre>
  <p>Valid #'s code: <a href="https://pastebin.com/DPuSpMEq" rel="nofollow noreferrer">https://pastebin.com/DPuSpMEq</a></p>
  <pre><code>public String toString() {
        DecimalFormat fmt = new DecimalFormat(&quot;#,##0.0##&quot;);
        return &quot;A decagonal prism \&quot;&quot; + label
           + &quot;with edge = &quot; + edge + &quot; units.\n\t&quot;
           + &quot;and height = &quot; + height + &quot; units.\n\t has:&quot;
           + &quot;surface area = &quot; + fmt.format(surfaceArea()) + &quot; square units\n\t&quot;
           + &quot;base area = &quot; + fmt.format(baseArea()) + &quot; square units \n\t&quot;
           + &quot;lateral surface area = &quot; 
                    + fmt.format(lateralSurfaceArea()) + &quot; square units\n\t&quot;
           + &quot;volume = &quot; + fmt.format(volume()) + &quot; cubic units \n\t&quot;;
  </code></pre>