title: How to include existing code/class file when compiling in Java
body: <p>I am a complete newbie with Java. I use notepad++ to write Java code, and then compile and execute using command line on the <strong>Windows Platform</strong></p>
  
  <p>How do I reuse existing code or a class file? For instance, I have written a class in file <strong>A.java</strong> (with the corresponding compiled class file available) and wish to use that class in <strong>B.java</strong>. Do I need to specify it in the <strong>B.java</strong> file (sort of lie c/c++) or using compiler options. What compiler options?</p>