In general, there are some minor problems ..
1. Java obtains random numbers within a period of time
First obtain the current time: Date. the data obtained by gettime () in milliseconds since January 1 ...... then, you only need to subtract the random value of a certain period of time to get OK...
Public date gettextdate () {date = new date (); random r = new random (); // get a random time 5 minutes ago return New Java. util. date (date. gettime ()-R. nextint (5) * 1000*60);} public date gettextdate1 () {date = new date (); random r = new random (); // obtain a random time return New Java 5-10 minutes ago. util. date (date. gettime ()-(R. nextint (5) * 1000*60 + 5*1000*60 ));}
2. Use case when of oracle.
http://www.cnblogs.com/eshizhan/archive/2012/04/06/2435493.html
When a field in your database needs to be assigned a corresponding physical attribute, you can use
3. Constructor
Pay attention to the parameters when calling the constructor. Whether there are parameters that affect the method to call this function
4. Change the workspace when myeclipse is started.
I don't know how to do this. myeclipse starts the workspace on drive C every time it starts. I have changed it.
Start the default workspace c: \ Users \ Administrator \ workspaces \ myeclipse 8.5 each time. Next, change the workspace to your desired workspace. modify the configuration file: config. INI file. The following content is available in row 6th: [email protected]/workspaces/myeclipse 8.5 to: osgi. instance. area. default = E: \ workspace, where E: \ workspace is the default workspace to be loaded.
****************