Accessing data from a data class returning null
<p>OK, I'm not super new to java but for some odd reason I can't figure out why this is not working for me.  Basically I have 3 classes in my applet.</p>

<p>My main, my string constructor, and my data class.</p>

<p>The main class calls the string constructor, the string constructor stores its final product into the data class.  Last, I'm trying to access the data class using my Main class.</p>

<p>The returned value to the main is always null and I can't figure out why.  My suspicion is I'm somehow creating 2 separate data class objects but Ive looked at examples of code and it all seems correct.  Here are the classes..</p>

<p>main.</p>

<pre><code>public class LaneGUI extends javax.swing.JApplet {

private laneData laneData;


Timer timer;
/** Initializes the applet LaneGUI */
public void init() {        

    laneData = new laneData();
    xmlParser.parseInputString(connection.getFinalXMLString());
    System.out.println(laneData.getLaneID()); 
</code></pre>

<p>string contructor...</p>

<pre><code>public class XMLParser {

private laneData laneData;


public void parseInputString(String input){    
  try{     
    /*some xmlparsing*/        
    laneData = new laneData();
    laneData.setLaneID(string);
</code></pre>

<p>data class</p>

<pre><code>public class laneData {
private String laneID;

public String getLaneID() {
    return laneID;
}

public void setLaneID(String laneID) {
    this.laneID = laneID;
}

}
</code></pre>

<p>There is a lot of editing here, like in the string class I took out all of the xml parsing and string editing.</p>

<p>Basically, when i check the getLaneID after i set it in the string constructor the value is correct.  But when i call a get from the main, its null.</p>
