title: Printing Getter methods
body: <p>I'm having a problem trying to print out Getter methods in a switch statement from two different classes. A template (Donut) class and a chocolate class can anyone help me out?</p>
  
  <pre><code>public class Donut {
    private boolean sprinkles;
    private String flavor;
    private boolean filled;
    private String frostingFlavor;
    private boolean hole;
    private String name;
    public Donut(String name) {
        this.name=name;
    }
    public void setSprinkles(boolean sprinkles) {
        this.sprinkles=sprinkles;
    }
    public void setFlavor(String flavor) {
        this.flavor=flavor;
    }
    public void setHole(boolean hole) {
        this.hole=hole;
    }
    public void setFilled(boolean filled) {
        this.filled=filled;
    }
    public void frostingFlavor(String frostingFlavor) {
        this.frostingFlavor=frostingFlavor;
    }
    public String Donut() {
        return name;
    }
    public boolean Sprinkles() {
        return sprinkles;
    }
    public String getFlavor() {
        return flavor;
    }
    public boolean Hole() {
        return hole;
    }
    public boolean Filled() {
        return filled;
    }
    public String frostingFlavor() {
        return frostingFlavor;
    }
  }
  </code></pre>
  
  <p>And here's the class</p>
  
  <pre><code>import java.io.*;
  import java.util.*;
  
  public class Chocolate {
    public static void main(String args[]){
        Donut chocolate=new Donut("chocolate");//Sets donut name to chocolate
        chocolate.setFlavor("chocolate");//sets donut flavor to chocolate
        chocolate.setHole(true);//donut object has a hole
        chocolate.setFilled(false);//donut object isn't filled
        chocolate.frostingFlavor("vanilla");//donut frosting flavor is vanilla
        chocolate.setSprinkles(true);//donut object has sprinkles
        Scanner kbReader=new Scanner(System.in);//scanner/imput header
        System.out.println("What would you like to know?");//start of switch statement
        System.out.println("1. Donut Flavor");
        System.out.println("2. Donut Frosting Flavor");
        System.out.println("3. Donut Sprinkles");
        System.out.println("4. Filled");
        System.out.println("5. Sprinkles");
        System.out.println("6. Donut Hole\n");
        int choice=kbReader.nextInt();
        switch(choice) {
            case 1://Donut Flavor
            System.out.println(Donut.getFlavor());
        }
    }
  }
  </code></pre>
  
  <p>It'd be awesome if anyone could help me out,Thanks.</p>