Answered step by step
Verified Expert Solution
Question
1 Approved Answer
it is a problem for Java For this lab, you will use loops if statements methods Character.isDigit .Character.isLetter Character.isWhitespace string length0 You will write a
it is a problem for Java
For this lab, you will use loops if statements methods Character.isDigit .Character.isLetter Character.isWhitespace string length0 You will write a public static void method called strAnalsys that takes in a single String parameter called str The method will print out the total number of digits, letters and spaces in a string respectively after first printing the string with whitespace For example strAnalsys ("31st Is Halloween"); would print out to the screen tence: 31st is Halloween Digits: 2 Letters: 13 Spaces: 2 Notice the extra space at the end LAB ACTIVITY 13.4.1: String Analysis 0/6 Main.java Load default template... 2 public class Main 5 Type your code here. / 7 public static void main(String[] args) t strAnalsys("Hello"); strAnalsys("1234"); strAnalsys ("Sonnet 116:InLove alters not with his brief hours and weeks, InBut bears it out even to the edge of doom.InIf this be er strAnalsys ("Halloween starts October 1st and ends November 2nd, the season starts after July") 12 13 15 16 17 18Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started