正确事例:
package myown;
import java.lang.reflect.Array;
import java.net.*;
import java.util.ArrayList;
import java.util.Arrays;
//import java.util.Set;
//import java.util.StringTokenizer;
//import java.util.concurrent.ForkJoinPool.ManagedBlocker;
import java.io.*;
public class urlgetcontent {
/**
* @param args
*/
public static void main(String[] args) {
//System.out.println(arr);
process process=new process();
process.setcode("sh600000");
process.Settime("2013-02-08");
// System.out.println(process.gettime()); // the problem1
process.pracess();
}
}
class process
{
private String time;
private String code;
public void Settime(String time)
{
this.time=time;
}
public void setcode(String code)
{
this.code=code;
}
public String gettime()
{
return this.time;
}
public String getcode()
{
return this.code;
}
public void pracess() {
// TODO Auto-generated constructor stub
String arr[][]=null;
urlprocess processUrlprocess =new urlprocess();
arr= processUrlprocess.ReArray("