00:01
We are going to be creating a java program that takes a sentence from the user and finds the number of lowercase and the number of uppercase from the user text.
00:17
To do this, we want to first make sure we've created a scanner.
00:23
Also want to make sure that we've imported the scanner as well.
00:29
The scanner allows us to get input from the user.
00:34
Once you've done this, you want to make sure you created your scanner name and named it accordingly.
00:40
Here i've named it user object.
00:45
Next, you want to create a user.
00:48
So i create a message.
00:52
This message will ask the user to input text.
01:08
Once we have this, we can create a string.
01:12
I also want to make sure that we capitalize the s in string.
01:20
Now to store the user input within this variable, we need to first use our scanner variable name, which is the object, that next line.
01:43
Next, we want to create two different variables.
01:48
We can call them hint upper, set it to zero, and lower.
01:59
Same is also to zero.
02:02
These will be our integers for finding the amount of uppercase and the amount of lowcase and our growth.
02:10
Now we want to create for loop.
02:17
I want the condition of a far loop to be.
02:24
Integer of i which we're creating integer.
02:29
With this integer, we want to check to see if i is less than user text.
02:40
Length.
02:47
Let's be add that.
02:49
We want to then increment i by one.
02:55
In our filter loop, we want to create a character variable and then we're then going to take our user text variable that we created and then create character, hat, and then i...