Results 1 to 2 of 2
Like Tree1Likes
  • 1 Post By jim829

Thread: Cannot Find symbol compile error, need help!

  1. #1
    BookOfEliX is offline Member
    Join Date
    Feb 2015
    Rep Power

    Default Cannot Find symbol compile error, need help!

    I decided to code this quiz I took in class about asking the user to input a string and the code is suppose to check for upper case letters. If a upper case letter is found, it should increase a count by one. Once the check is done, it should display the number of uppercase letters. For some reason I am getting this weird compile error stating that symbols can't be found. Can anyone help me?

    Java Code:
    import java.util.*;
    import java.lang.*;
    public class StringCheck{
       public static void main(String[] args){
          Scanner input = new Scanner(;
          System.out.println("please enter a string: " );
          String s = input.nextLine();
          int count = 0; 
          for(int i = 0; i < s.length(); i++){
          System.out.println("the number of uppercase letters is: " + count);

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Northern Virginia, United States
    Rep Power

    Default Re: Cannot Find symbol compile error, need help!

    I am pretty certain I know what the problem is but you didn't provide the error message. You should post it and learn how to interpret it if you want to start debugging on your own. But here is a hint in the form of a question.

    What exactly do you thing line 10 is doing? Explain the syntax in detail.

    dhruboster likes this.
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. Java Compile Error : cannot find symbol
    By JoelC in forum New To Java
    Replies: 9
    Last Post: 11-06-2012, 07:43 PM
  2. Replies: 1
    Last Post: 11-18-2011, 11:55 PM
  3. Cannot find symbol (compile error)
    By mrgreenacid in forum New To Java
    Replies: 1
    Last Post: 10-30-2011, 04:55 AM
  4. Cannot find symbol (compile error)
    By mrgreenacid in forum Java Software
    Replies: 2
    Last Post: 10-30-2011, 03:42 AM
  5. Constructor: Cannot find symbol compile error.
    By CaptainBeer in forum New To Java
    Replies: 4
    Last Post: 04-28-2011, 11:25 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts