AP Computer Science A - Can You Leave the Java Subset on FRQs?

<p>Here is a question that my teacher was not able to answer and that I could not find an answer for while searching this site and CollegeBoard.com.</p>

<p>On the FRQs for comp sci, is a student allowed to use code outside of the Java subset? For example, things that come to mind that might be useful include equalsIgnoreCase(), replaceAll(), charAt(), instanceof, do-while loops, etc.</p>

<p>Thank you!</p>

<p>From the collegeboard site “Please answer all questions involving code in Java.”</p>

<p>You can use anything as long as it’s part of standard Java. Obviously no obscure class that your buddy wrote, but the ones you mentioned are fine. I think using stuff like StringBuffer is good to go as well. </p>

<p>Just so you know, however, nothing outside of the AP Java Subset will be required to answer any question on the exam.</p>

<p>I knew that I wouldn’t be required to know anything outside of it, but it’s nice to know that I can go outside of the subset if it makes for an easier solution. Thank you!</p>

<p>Ironically, today I read this in my eIMACS online textbook:</p>

<p>

</p>

<p>I s’pose that settles the matter.</p>

<p>Since you mentioned eIMACS, I’m guessing you’re using FLVS. Do you have Ms. Ross?</p>

<p>I’m sure that if you use like “do-while” loops (which are not part of the subset) instead of while loops they won’t take off points. But I would probably avoid using crazy stuff like regex, string tokenizer, swing, etc… you shouldn’t need any of that stuff anyway.</p>

<p>DarkEyes - yeah, I haven’t seen a need to use any of that.</p>

<p>An0maly - naw, Mrs. Brock. She’s excellent, though.</p>