User:Littlemisstechie

public class Hello { private String name; private String favoriteShow; private String favoriteColors; public Hello(String myName, String faveTvShow, String faveColors) { name = myName; favoriteShow = faveTvShow; favoriteColors = faveColors; } public String showName { return name; } public String showFaveTv { return favoriteShow; } public String showFaveColors { return favoriteColors; }

public static void main(String args[]) { Hello me = new Hello("Dr. Crusher", "Star Trek TOS and TNG", "Green and blue"); System.out.println("Hello Wikipedia!"); System.out.println("\nMy name is "+me.showName+","); System.out.println("My favorite shows are "+me.showFaveTv+","); System.out.println("And my favorite colors are "+me.showFaveColors+"."); } }