[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-311712-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-311712-en":130},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","ap-computer-science-a-java-quick-reference-exam-reference-information","AP Computer Science A - Java Quick Reference - Exam Reference Information","","AP® Computer Science A 2026 Exam Reference Information provides a focused Java quick reference for the AP Computer Science A Exam. It lists accessible Java library methods commonly used in exam questions, including String methods (length, substring, indexOf, equals, compareTo, split), Integer constants and parsing, Double parsing, Math functions (abs, pow, sqrt, random), ArrayList operations (size, add, get, set, remove), plus File, Scanner, and basic Object methods. The booklet also includes exam instructions about scratch work space.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/ap-computer-science-a-java-quick-reference-exam-reference-information/311712/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/ap-computer-science-a-java-quick-reference-exam-reference-information/311712.png","ImageObject",300,407,{"name":42,"@type":43},"Aladdin","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-10-22","2026-09-20",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",10,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"What does the Java quick reference in this booklet cover?","Question",{"text":63,"@type":64},"It provides a curated set of accessible Java library methods that may appear on the AP Computer Science A Exam, covering classes like String, Integer, Double, Math, ArrayList, File, Scanner, and Object.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Can students use blank space in the booklet for scratch work?",{"text":68,"@type":64},"Yes. The booklet states that any blank space may be used for scratch work during the exam.",{"name":70,"@type":61,"acceptedAnswer":71},"What String operations are included?",{"text":72,"@type":64},"Included String methods cover common operations such as length(), substring(), indexOf(), equals(), compareTo(), and split(), with the relevant return behaviors described.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},311712,1790413420,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,105,110,115,120,123,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":103,"slug":104},6,50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":112,"show_sort_weight":113,"slug":114},8,"Research & Report",30,"research-report",{"id":116,"doc_module":4,"doc_module_name":25,"category_name":117,"show_sort_weight":118,"slug":119},9,"Religion & Spirituality",20,"religion-spirituality",{"id":118,"doc_module":4,"doc_module_name":25,"category_name":121,"show_sort_weight":118,"slug":122},"World Cup","world-cup",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":55,"slug":125},"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":102,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":30,"language":139,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":12,"update_tm":143,"read_time":111},2336478503145,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","AP® Computer Science A  \n2026 EXAM REFERENCE INFORMATION  \nName:    \nNOTE: You may use any blank space in this booklet for scratch work during the exam. Proctors should collect this reference information at the conclusion of the exam.  \nJava Quick Reference  \nThis table contains accessible methods from the Java library that may be included ontheAP Computer Science A Exam.  \nClass Constructors and Methods Explanation  \nString Class  \n\n| String(String str) | Constructs a new String object that represents the same sequence of characters as str |\n| --- | --- |\n| int length() | Returns the number of characters in a String object |\n| String substring(int from,\u003Cbr>int to) | Returns the substring beginning at index from and ending at index to – 1 |\n| String substring(int from) | Returns substring(from, length()) |\n| int indexOf(String str) | Returns the index of the first occurrence of str; returns -1 if not found |\n| boolean equals(Object other) | Returns true if this corresponds to the same sequence of characters as other; returns false otherwise |\n| int compareTo(String other) | Returns a value \u003C 0 if this is less than other; returns zero if this is equal to other; returns a value > 0 if this is greater than other. Strings are ordered based upon the alphabet. |\n| String[] split(String del) | Returns a String array where each element is a substring of this String, which has been split around matches of the given expression del |\n| Integer Class |  |\n| Integer .MIN_VALUE | The minimum value represented by an int or Integer |\n| Integer .MAX_VALUE | The maximum value represented by an int or Integer |\n| static int parseInt(String s) | Returns the String argument asan int |\n| Double Class |  |\n| static double\u003Cbr>parseDouble(String s) | Returns the String argument asa double |\n| Math Class |  |\n| static int abs(int x) | Returns the absolute value of an int value |\n| static double abs(double x) | Returns the absolute value of a double value |\n| static double pow(double base, double exponent) | Returns the value of the first parameter raised to the power of the second parameter |\n| static double sqrt(double x) | Returns the nonnegative square root of a double value |\n| static double random() | Returns a double value greater than or equal to 0.0 and less than 1.0 |\n| ArrayList Class |  |\n| int size() | Returns the number of elements in the list |\n| boolean add(E obj) | Appends obj to end of list; returns true |\n| void add(int index, E obj) | Inserts obj at position index (0 \u003C= index \u003C= size), moving elements at position index and higher to the right (adds 1 to their indices) and adds 1 to size |\n| E get(int index) | Returns the element at position index in the list |\n| E set(int index, E obj) | Replaces the element at position index with obj; returns the element formerly at position index |\n| E remove(int index) | Removes element from position index, moving elements at position index + 1 and higher to the left (subtracts 1 from their indices) and subtracts 1 from size; returns the element formerly at position index |\n\nAP Computer Science A 1  \n© 2025 College Board  \n\n| File Class |  |\n| --- | --- |\n| File(String pathname) | The File constructor that accepts a String pathname |\n| Scanner Class |  |\n| Scanner(File f) | The Scanner constructor that accepts a File for reading |\n| int nextInt() | Returns the next int read from the file or input source if available. If the next int does not exist or is out of range, it will result in an InputMismatchException. |\n| double nextDouble() | Returns the next double read from the file or input source. If the next double does not exist, it will result in an\u003Cbr>InputMismatchException. |\n| boolean nextBoolean() | Returns the next boolean read from the file or input source. If the next boolean does not exist, it will result in an\u003Cbr>InputMismatchException. |\n| String nextLine() | Returns the next line of text as a String read from the file or input source; can return the empty string if called immediately a","cbCaikA3rwNz3T6B","https://ap.wps.com/l/cbCaikA3rwNz3T6B","pdf",3861248,"English","# Java Quick Reference\n## String Class\n## Integer Class\n## Double Class\n## Math Class\n## ArrayList Class\n## File Class\n## Scanner Class\n## Object Class","[{\"question\":\"What does the Java quick reference in this booklet cover?\",\"answer\":\"It provides a curated set of accessible Java library methods that may appear on the AP Computer Science A Exam, covering classes like String, Integer, Double, Math, ArrayList, File, Scanner, and Object.\"},{\"question\":\"Can students use blank space in the booklet for scratch work?\",\"answer\":\"Yes. The booklet states that any blank space may be used for scratch work during the exam.\"},{\"question\":\"What String operations are included?\",\"answer\":\"Included String methods cover common operations such as length(), substring(), indexOf(), equals(), compareTo(), and split(), with the relevant return behaviors described.\"}]","AP Computer Science A - Java Quick Reference - Exam Reference Information | PDF",1789894691]