alternate of symbols

I抦 having problem with these two symbols ( ` ' ) I抦 using book 揟each yourself java in 24 hours?these symbols are used in this book. I抦 using jdk1.5.0_11. Whenever I use these symbols compiler gives errors. In this source code which symbol I can use in alternate of them.

class Wheel {

public static void main(String arguments[]) {

String phrase[] = {

"A STITCH IN TIME SAVES NINE",

"DON'T EAT YELLOW SNOW",

"JUST DO IT",

"EVERY GOOD BOY DOES FINE",

"I WANT MY MTV",

"HOW `BOUT THEM COWBOYS",

"PLAY IT AGAIN, SAM",

"FROSTY THE SNOWMAN",

"ONE MORE FOR THE ROAD",

"HOME FIELD ADVANTAGE",

"VALENTINE'S DAY MASSACRE",

"GROVER CLEVELAND OHIO",

"WONDERFUL WORLD OF DISNEY",

"COAL MINER'S DAUGHTER",

"WILL IT PLAY IN PEORIA"

};

int[] letterCount = new int[26];

for (int count = 0; count < phrase.length; count++) {

String current = phrase[count];

char[] letters = current.toCharArray();

for (int count2 = 0; count2 < letters.length; count2++) {

char lett = letters[count2];

if ( (lett >= `A') & (lett < `Z') ) {

letterCount[lett - `A']++;

}

}

}

for (char count = `A'; count <= `Z'; count++) {

System.out.print(count + ": " +

letterCount[count - `A'] +

"\t");

}

System.out.println();

}

}

[1453 byte] By [iwanttolearna] at [2007-11-27 2:29:45]
# 1

That's bad typesetting in that book. For Strings use the normal double

quotes and for single characters use the normal single quote. The back

quote isn't used by Java but can be any normal character in a String or

just be a single character of its own (embraced by the other quotes

of course.

kind regards,

Jos

JosAHa at 2007-7-12 2:43:03 > top of Java-index,Java Essentials,New To Java...
# 2
thanks
iwanttolearna at 2007-7-12 2:43:03 > top of Java-index,Java Essentials,New To Java...