title: Write a program that prompts the user to enter a string, then displays the total number of characters and total number of lower case characters
body: <p>I am a beginner so please help me! so the goal is to write a program in simple java that will ask someone to enter a string, then prints the total characters, as well as the total lower case characters, here is what I have so far...</p>
  
  <pre><code>import java.util.Scanner;
  
  public class test2 {
      public static void main(String[] args){
          Scanner input = new Scanner(System.in);
          System.out.println("Enter a string");
          String s = input.nextLine;
          String lower = "";
          String total = "";
  
          for (int i = 0; i &lt; s.length(); i++) {
              char thisChar = s.charAt(i);
          } if (thisChar &gt;= 97 &amp;&amp; thisChar &lt;= 122) {
              lower += thisChar;
          }
  
          System.out.println("Total amount of characters: " + s.length() + " - " + s);
          System.out.println("Lower case letters: " + lower.length() + " - " + lower);    
      }
  }
  </code></pre>