title: JAVA questissn regarding methods/classes
body: <p>I am somewhat new to JAVA.  I've been working with it in college, but I have to admit, my instructor is of absolutely no help.  She hardly knows JAVA herself, but that is another issue all in itself.  I've been confused as to how methods and classes work.  I'm creating this program that uses two files, one "main" file, and a "test" file.  I can't seem to get the "main" file correct, as the compiler keeps telling me that it cannot find the symbols, even though they are.  In the "test" file, I can't seem to get the compiler to recognize the methods from the "main" file.  I have made sure that the files are in the same folder.  I want to combine them into one file for simplicity, but I will lose points.  I've included my code so far.  I'm not looking for a "fix-it" solution, I just want to figure out why it's not working.  ANY help is appreciated, since my instructor isn't of much assistance  Thank you kindly!</p>
  
  <hr>
  
  <p>MAIN FILE:</p>
  
  <pre><code>import java.util.Scanner;
  
  class Fruit1 {
      static Scanner console = new Scanner(System.in);
  
      public static void main(String args[]) {
  
          String color;
          String taste;
      }
  
      public Fruit1() {
          // generic constructor
  
          color = "red";
          taste = "yum";
  
      }
  
      public Fruit1(String aColor, String aTaste) {
          // constructor with parameters
          color = aColor;
          taste = aTaste;
      }
  
      public Fruit1(String bColor, String bTaste) {
  
          color = bColor;
          taste = bTaste;
      }
  
      String getTaste() {
          return taste;
      }
  
      String getColor() {
          // Accessor method
          return color;
      }
  }
  </code></pre>
  
  <hr>
  
  <p>TEST FILE:</p>
  
  <pre><code>import java.util.*;
  
  public class Fruit1Test {
  
      static Scanner console = new Scanner(System.in);
  
      public static void main(String args[]){
  
          Fruit1 a = new Fruit1("pinkish-red", "sweet-tart");
          Fruit1 l = new Fruit1("yellow", "tart/sour");
  
          a.taste();
          a.color();
          l.taste();
          l.color();
  
          System.out.println("Your apple is " + a.color + "in color and has a " + a.taste + " taste. ");
          System.out.println("Your lemon is " + l.color + "in color and has a " + l.taste + " taste. ");
          System.out.println();
      }
  }
  </code></pre>