title: Have to analyze a folder and do things with it: java
body: <p>First of all, this is not trying to get someone to do my homework. I'm just trying to get people to HELP me with my homework. Moving forward.
  I really wish I could do this by myself without help, but I believe there are integral specific vocabulary words that I do not know of that prevent me from knowing how to do this.</p>
  
  <p>Folders roog = new Folders("C:\Users\Nick\AndroidStudioProjects");</p>
  
  <p>So "Folders" is supposed to be a class where I can basically analyze folders and do certain functions.
  Here is one of the things I'm supposed to do:
  System.out.println(roog);
  That will print a list of all the files and folders there.
  So therefore, in my class, I have to do that somewhere.</p>
  
  <p>My issue with this is: it doesn't tell me where in "Folders" to go. So how am I supposed to make it go print out the list in the file "C:\Users\Nick\AndroidStudioProjects" if it doesn't tell you where in the class to go?</p>
  
  <ol start="2">
  <li><p>System.out.println(roog.countFiles());
  So I'm supposed to make a method called countFiles, that counts the amount of files above? Seems pretty simple, make an int and do a "listfiles().length". As long as I have that right. So is that right?</p></li>
  <li><p>System.out.println(roog.countFiles("java"));
  Counts the number of times the word "java" is in a file name.
  Would I do this?:</p>
  
  <p>.endsWith("java")?
  or ".contains("java")?"</p></li>
  <li><p>System.out.println(roog.countInFiles("public")); 
  So I have to OPEN the files. How do I open them? And then I think I would know how to count them based on previous problems. I just don't know what to "use" to open files.</p></li>
  </ol>
  
  <p>Thanks!</p>