4. Get user to enter a phrase and print out how long the phrase is(Hint: use String method). Expected output: ----jGRASP exec: java LabActivity10_4 Enter a phrase I am Beyonce always Your phrase...


4. Get user to enter a phrase and print out how long the phrase is(Hint: use String method). Expected output:


----jGRASP exec: java LabActivity10_4


Enter a phrase


I am Beyonce always


Your phrase length is 19


----jGRASP: operation complete


5. Create a void method called greet that prints "Hello". Call the greet method in your main method. (Remember, void is just a substitute for the datatype of your method when you don't return a value)


----jGRASP exec: java LabActivity10_5


Hello


----jGRASP: operation complete.



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here