title: how to pass strings from one activity and display them as a textview in another activity
body: <p>In my application am collecting 2 values from server in 2 strings as,</p>
  
  <pre><code>String j1, j2;
  
  j1 = strLine[11];  //Collecting values from the server
  j2 = strLine[12];
  </code></pre>
  
  <p>and passing them to another activity,</p>
  
  <pre><code>Intent i = new Intent(getApplicationContext(),UserBookAppointSearchList.class);
  
  i.putExtra("J1", j1);
  i.putExtra("J2", j2);
  
  startActivityForResult(i, 0);
  </code></pre>
  
  <p>And in the other activity, am collecting strings as,</p>
  
  <pre><code>TextView tv2;
  
  String j1, j2; // strings to collect values from previous activity
  
   j1 = getIntent().getExtras().getString("J1");
   j2 = getIntent().getExtras().getString("J2");
  
   tv2 = (TextView) findViewById(R.id.msg2);
   tv2.setText(j1+":"+j2);
  </code></pre>
  
  <p>Can anyone tell me what is  wrong with this code??</p>