Monday, 6 November 2017

java programming language methods



Question 12
What is isDigit();
Ans
It work on single character. This function return true or false. If user enter digit it returns true otherwise it returns false.
Question 13
Give example of  isDidit();
Ans
Example     Character. isDigit(g)    it return false    Character.isDigit(3)    it return true
Question 14
What is isLetter();
Ans
It work on single character. This function return true or false. If user enter chracter it returns true otherwise it returns false

Question 15
Give example of isLetter();
Ans
Example      Character.isLetter(g)    it return false    Character .isLetter(3)    it return true

No comments:

Post a Comment