Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6352813
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:17:43+00:00 2026-05-24T22:17:43+00:00

Hey guys sorry this is a pretty long question but I cannot call printPASSInfo()

  • 0

Hey guys sorry this is a pretty long question but I cannot call printPASSInfo() to another class using pm.printPASSInfo(). pm is the name I named the class that the method I am trying to call is in. I can call the method pm.printSSNInfo just fine I do not understand what is going wrong. I am sorry this is probably confusing and very long but please try to help. Thanks guys! Heres my code:

import java.util.Scanner; 

public class Prog1Methods_FA11 {
    String ssn, pw, phoneNumber,line;
    Scanner input = new Scanner (System.in);
    boolean validPW_Length = true, 
            validPW_Symbols = true, 
            validPW_enough_Digits = true;
    boolean validSSN_Digits = true, 
            validSSN_Format = true, 
            validSSN_Length = true;
    boolean validPhone_Symbols = true, 
            validPhone_Format = true, 
            validPhone_Length = true;

    public Prog1Methods_FA11() {

    }


    // you may insert a method here to display password status
    public void printPASSInfo(){
        System.out.println("\t Password Information");
        System.out.println("The Password:\t" + pw);
        System.out.println("Password Lrngth:\t" + validPW_Length);
        System.out.println("Password has minimum number of digits:\t" + validPW_enough_Digits);
        System.out.println("Password has correct symbols:\t" + validPW_Symbols);
    }

    // you may insert a method here to display the phone number status

}

and here is where I am trying to call it:

case 2:     System.out.println("Enter a password witha atleast 8 characters and atleast 2 numbers:\t");
                        pw = input.nextLine();
                        pm.readAndVerifyPASS(pw);
                        pm.printPASSInfo();
                        break;

and the comile error:

MySkeletonProgram1_FA11.java:53: cannot find symbol
symbol  : method printPASSInfo()
location: class Prog1Methods_FA11
                            pm.printPASSInfo();
                                                          ^
1 error

Where I declare pm object:

public class MySkeletonProgram1_FA11{
  public static void main(String[] args)throws Exception {

// Declarations

Scanner scan = new Scanner(System.in);
Scanner input = new Scanner (System.in);
Prog1Methods_FA11 pm = new Prog1Methods_FA11();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T22:17:44+00:00Added an answer on May 24, 2026 at 10:17 pm

    I’m not sure how well I understood your question.
    I just tried to reproduce the error.
    So, what I’ve done.
    1. File MySkeletonProgram1_FA11.java

    public class MySkeletonProgram1_FA11 {
    
    public static void main(String[] args) throws Exception {
        Prog1Methods_FA11 pm = new Prog1Methods_FA11();
        pm.printPASSInfo();
    }
    }
    

    2. File Prog1Methods_FA11.java

    import java.util.Scanner;
    
    public class Prog1Methods_FA11 {
    
    String ssn, pw, phoneNumber, line;
    Scanner input = new Scanner(System.in);
    boolean validPW_Length = true,
            validPW_Symbols = true,
            validPW_enough_Digits = true;
    boolean validSSN_Digits = true,
            validSSN_Format = true,
            validSSN_Length = true;
    boolean validPhone_Symbols = true,
            validPhone_Format = true,
            validPhone_Length = true;
    
    public Prog1Methods_FA11() {
    }
    
    // you may insert a method here to display password status
    public void printPASSInfo() {
        System.out.println("\t Password Information");
        System.out.println("The Password:\t" + pw);
        System.out.println("Password Lrngth:\t" + validPW_Length);
        System.out.println("Password has minimum number of digits:\t" + validPW_enough_Digits);
        System.out.println("Password has correct symbols:\t" + validPW_Symbols);
    }
    }
    

    3. I’ve put both files in the same directory.
    4. Compilation command

    javac MySkeletonProgram1_FA11.java
    

    Compilation finished successfully without errors and warnings.

    Does it work for you? If the answer is “No”, then I think it’s a problem with your JDK. Otherwise you might want to provide additional details. What are you doing differently?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.