Eclipse to Merge Branch into Trunk
If the changes of branch project is merge to trunk then do the following steps in eclipse
- Find the revision number of the last merge
- Check out a copy of the trunk as, say, openmrs-trunk:
(0?[1-9]|[12][0-9]|3[01])/(0?[1-9]|1[012])/((19|20)\\d\\d) ([01][0-9]|2[0-3]):([012345][0-9]):([012345][0-9])
package com.javanotes2all.java.randomgenerator;
import java.util.Date;
import java.util.Random;
public class RandomGenerator
{
private static Random random = new Random((new Date()).getTime());
public static String generateRandomString(int length)
{
char[] values = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','0','1','2','3','4','5','6','7','8','9'};
String out = "";
for (int i=0;i<length;i++) {
int idx=random.nextInt(values.length);
out += values[idx];
}
return out;
}
public static void main(String[] args)
{
RandomGenerator generator=new RandomGenerator();
System.out.println(generator.generateRandomString(10));
System.out.println(generator.generateRandomString(10));
System.out.println(generator.generateRandomString(10));
System.out.println(generator.generateRandomString(10));
System.out.println(generator.generateRandomString(10));
}
}
OUTPUT: