Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I'm not sure how well I understood your question. I just tried to reproduce the error.<br/> So, what I've done.<br/> 1. File MySkeletonProgram1_FA11.java</p> <pre><code>public class MySkeletonProgram1_FA11 { public static void main(String[] args) throws Exception { Prog1Methods_FA11 pm = new Prog1Methods_FA11(); pm.printPASSInfo(); } } </code></pre> <p>2. File Prog1Methods_FA11.java</p> <pre><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); } } </code></pre> <p>3. I've put both files in the same directory.<br/> 4. Compilation command</p> <pre><code>javac MySkeletonProgram1_FA11.java </code></pre> <p>Compilation finished successfully without errors and warnings.</p> <p>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?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload