PredefinedMethods3

PredefinedMethods3 -...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//Predefined Methods: Examples of Table 7-2 / public class PredefinedMethods3 { public static void main(String[] args) { System.out.println("Character.isDigit('8') = " + Character.isDigit('8')); System.out.println("Character.isDigit('*') = " + Character.isDigit('*')); System.out.println("Character.isLetter('a') = " + Character.isLetter('a')); System.out.println("Character.isLetter('*') = " + Character.isLetter('*')); System.out.println("Character.isLowerCase('a') = " + Character.isLowerCase('a')); System.out.println("Character.isLowerCase('A') = " + Character.isLowerCase('A')); System.out.println("Character.isUpperCase('B') = " + Character.isUpperCase('B')); System.out.println("Character.isUpperCase('k') = " + Character.isUpperCase('k'));
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: System.out.println("Character.isSpaceChar(' ') = " + Character.isSpaceChar(' ')); System.out.println("Character.isSpaceChar('*') = " + Character.isSpaceChar('*')); System.out.println("Character.isWhitespace('\\n') = " + Character.isWhitespace('\n')); System.out.println("Character.isWhitespace('*') = " + Character.isWhitespace('*')); System.out.println("Character.toLowerCase('D') = " + Character.toLowerCase('D')); System.out.println("Character.toLowerCase('*') = " + Character.toLowerCase('*')); System.out.println("Character.toUpperCase('j') = " + Character.toUpperCase('j')); System.out.println("Character.toUpperCase('8') = " + Character.toUpperCase('8')); } }...
View Full Document

Ask a homework question - tutors are online