View Single Post
  #5 (permalink)  
Old 05-04-2008, 10:02 PM
Bascotie Bascotie is offline
Member
 
Join Date: Apr 2008
Posts: 77
Bascotie is on a distinguished road
Ok im not sure if im doing this correctly, but according to what I see your definition looks like, I've come up with this for the strings that I need:

Code:
import javax.swing.JOptionPane; import java.util.StringTokenizer; public class Project2Definition { //Declare variables class PersonData { String userFirstName; String userLastName; String userPhone; String userRolls; String userPrints; public String toString() { return "PersonData[name:]" + userFirstName + userLastName + "Phone:" + userPhone + "Number of Rolls:" + userRolls + " Number of Prints:" + userPrints; } } }
Reply With Quote