devxlogo

May 27, 2004

Generate a String of Specified Characters and of Desired Length

The following function generates a string of specified characters and of desired length: public static String getStringOfChars(char ch,int length) { StringBuffer sb=new StringBuffer(); sb.setLength(length); return sb.toString().replace(‘u0000’,ch); }

Big Tech·Ed Accelerates Big-Tech Breeding Frenzy

o matter what Microsoft representatives said this week at its Tech·Ed conference in San Diego, the message that the company is delivering to the roughly 11,000 IT administrators and developers