Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package stringdemo;
- public class StringDemo {
- public static void main(String[] args) {
- String demo = "I do not like green eggs and ham";
- System.out.println(demo.toLowerCase());
- System.out.println(demo.toUpperCase());
- System.out.println(demo.length());
- System.out.println(demo.isEmpty());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement