****************

Source: Internet
Author: User

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.

****************

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.