char [] result = new char [length * 2 + 1];
char [] result = new char [length * 2];
char [] fixMnemonic (String string) {	int length = string.length ();	char [] text = new char [length];	string.getChars (0, length, text, 0);	int i = 0, j = 0;	char [] result = new char [length * 2 + 1];	while (i < length) {		switch (text [i]) {			case '&':				if (i + 1 < length && text [i + 1] == '&') {					i++; 				} else {					text [i] = '_';				}				break;			case '_':				result [j++] = '_';				break;		}		result [j++] = text [i++];	}	return result;}