I am doing a simple tutorial for Java using Eclipse and am running into an issue I can't seem to resolve:
package edu.sti.java1;
public class Driver {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println ("This is a Java Program Console Output String!");
Shout s;
System.out.println("Are you: "
+ s.getFname()
+ " " + s.getMi()
+". " + s.getLname()
+ ", " + s.getAge()
+" YEARS OF AGE?");
}
}
I get an error that 's' has not been initiated. There are a ton of topics about an integer variable being declared and initiated but I can't seem to find one about assigning a class to a variable. The class 'Shout' appears to be set up properly and is straight from the tutorial.
If anyone can point out my mistake that would be great. If it isn't obvious I am pretty new to programming.
Thanks!