Write a class, xxxxString1 (where xxxx is your Kean id), with a main method. Include the following: Using the methods of String produce the output in the following slide. oYou must use the methods indicated on the slide following the output oDeclare a String variable in your class. The content of the String is Kean University Using the String and the methods of the String class, print the following lines. 1) The number of characters is 15 2) The String in lower case is kean university 3) The String in upper case is KEAN UNIVERSITY 4) The first 6 characters of the String is Kean u 5) The rest of the characters in the String are niversity 6) The U in the String is at position 5 7) The u in the String is at position -1 8) The o in the String is at position -1 9) A new String where University is replaced with U Kean u 10)The original String has not changed Kean University For each line use the methods to the right of the line: 1) The number of characters is 15 (length) 2) The String in lower case is kean university (toLowerCase) 3) The String in upper case is KEAN UNIVERSITY (toupperCase) 4) The first 6 characters of the String is Kean u (substring) 5) The rest of the characters in the String are niversity (substring) 6) The U in the String is at position 5 (indexOf) (indexOf) 7) The u in the String is at position -1 8) The o in the String is at position -1 indexOf) 9) A new String where University is replaced with U Kean U (replace) 10)The original String has not changed Kean University (none)
Write a class, xxxxString1 (where xxxx is your Kean id), with a main method. Include the following: Using the methods of String produce the output in the following slide. oYou must use the methods indicated on the slide following the output oDeclare a String variable in your class. The content of the String is Kean University Using the String and the methods of the String class, print the following lines. 1) The number of characters is 15 2) The String in lower case is kean university 3) The String in upper case is KEAN UNIVERSITY 4) The first 6 characters of the String is Kean u 5) The rest of the characters in the String are niversity 6) The U in the String is at position 5 7) The u in the String is at position -1 8) The o in the String is at position -1 9) A new String where University is replaced with U Kean u 10)The original String has not changed Kean University For each line use the methods to the right of the line: 1) The number of characters is 15 (length) 2) The String in lower case is kean university (toLowerCase) 3) The String in upper case is KEAN UNIVERSITY (toupperCase) 4) The first 6 characters of the String is Kean u (substring) 5) The rest of the characters in the String are niversity (substring) 6) The U in the String is at position 5 (indexOf) (indexOf) 7) The u in the String is at position -1 8) The o in the String is at position -1 indexOf) 9) A new String where University is replaced with U Kean U (replace) 10)The original String has not changed Kean University (none)
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
Recommended textbooks for you
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education