comp.lang.java.help - Set-up problems, catch-all first aid.
Hi, Is there an equivalent in Java to the VB 'string' function, which creates a string of 'x' repeating characters? For instance, something like: String s = vbEquivString("x", 6); // yields s = "xxxxxx" Thanks, Jim
In Java, what function/method do we have for constructing composed of a single character repeated x number of times. I am looking for the .NET equivalant of this String class constructor: public String(char c, int numTimesToRepeat); I looked at the java.lang.String class' constructors and couldn't find one that matched my needs.
Hi, Convert the character to hex and build the string as: str = '\xFD\xFE'; as \xHEXCODEHERE regards, Elias