Yea, it turns out i wasnt thinking right and you can just throw it like any normal exception at the top of your method.
as to your question, You throw exceptions at the top of your method if you are going to have lets say a break in your loop, you would put "throws InterruptedException" at the top of your method.
public static void main (String args []) throws InterruptedException
the reason i was doing this because I was getting a runtime error of a NullPointerException in my method so I tried throwing an exception to that error( the throws NullPointerException) to see if that would eliminate my runtime error, but it did not do as i was hoping. Still getting the same error...Cant figure it out, its probably something SO small
Heres the method where i am recieving this error
public static String takeout(String str,int start, int stop)throws NullPointerException{
String res=null;
res=str.substring (start,stop).trim();
//takeout one part of the text file;
if (res.indexOf("\""

>-1)
res=res.substring(0,res.length()-1);
return res;