Title: AP CSA Student Practice - Learn.java
Open Graph Title: AP CSA Student Practice - Learn.java
X Title: AP CSA Student Practice - Learn.java
Description: Specifically designed to support AP CSA students practice the skills needed for the exam.
Open Graph Description: Specifically designed to support AP CSA students practice the skills needed for the exam.
X Description: Specifically designed to support AP CSA students practice the skills needed for the exam.
X: @java
Domain: learn.java
| twitter:creator | @java |
| twitter:card | summary |
| “twitter:image” | “https://Learn.java/assets/images/java-logo-vert-blk.png” |
| og:site_name | Learn.java: The Destination for Java Beginners, Students, and Teachers |
| og:type | article |
| og:image | https://learn.java/assets/images/java-logo-vert-blk.png |
| ahrefs-site-verification | b1ab022cfdf3d75b18f68c8401014b9f17c119c714f2733e69892c61323079f0 |
Links:
| Skip Top Navigation Bar | https://learn.java/learning/apcsa-practice/string-examples/#main-content |
| https://learn.java/ | |
| Why Java? | https://learn.java/why |
| Learner's Corner | https://learn.java/learning |
| Teacher's Corner | https://learn.java/teachers |
| Java Playground | https://learn.java/playground |
| Home | https://learn.java/learning/ |
| Getting Setup | https://learn.java/learning/getting-setup/ |
| Learn | https://learn.java/learning/tutorials/ |
| Practice | https://learn.java/learning/lessons/ |
| Apply | https://learn.java/learning/mini-labs/ |
| APCSA Students | https://learn.java/learning/apcsa-practice/ |
| Other Resources | https://learn.java/learning/other-resources/ |
| Learn how to create and assign a String variable in Java, and see what happens when you reassign it. | https://learn.java/learning/apcsa-practice/string-examples/creation/example1/ |
| Learn what happens when you assign one String variable to another, and then reassign the first one. | https://learn.java/learning/apcsa-practice/string-examples/creation/example2/ |
| Learn what happens when you assign one String variable to another, and then reassign the first one. | https://learn.java/learning/apcsa-practice/string-examples/creation/example3/ |
| Learn what happens when you assign one String variable to another, and then reassign the first one. | https://learn.java/learning/apcsa-practice/string-examples/creation/example4/ |
| Learn how to use the length() method to get the number of characters in a String | https://learn.java/learning/apcsa-practice/string-examples/length/example1/ |
| Learn how to use the length() method on several String variables and compare their lengths. | https://learn.java/learning/apcsa-practice/string-examples/length/example2/ |
| Learn how length() reflects the new value of a String after concatenation and reassignment. | https://learn.java/learning/apcsa-practice/string-examples/length/example4/ |
| Getting the length of an empty String, and how it grows when characters are concatenated to it. | https://learn.java/learning/apcsa-practice/string-examples/length/example4/ |
| Learn how to use the single-argument substring() method to extract the end of a String starting at a given index. | https://learn.java/learning/apcsa-practice/string-examples/substring/example1/ |
| Learn how to use the two-argument substring() method to extract a portion of a String between a start and end index. | https://learn.java/learning/apcsa-practice/string-examples/substring/example2/ |
| Learn how to extract a word from the middle of a String using the two-argument substring() method | https://learn.java/learning/apcsa-practice/string-examples/substring/example3/ |
| Learn how to use the indexOf() method to find the position of a substring within a String, and what it returns when the substring is not found. | https://learn.java/learning/apcsa-practice/string-examples/indexof/example1/ |
| Learn how to use the two-argument indexOf() method to find successive occurrences of a substring by specifying a start index. | https://learn.java/learning/apcsa-practice/string-examples/indexof/example2/ |
| Learn the difference between comparing Strings with == and with the equals() method, and why it matters. | https://learn.java/learning/apcsa-practice/string-examples/equals/example1/ |
| Learn how equals() compares String content case-sensitively, and see what happens with strings that differ only in case. | https://learn.java/learning/apcsa-practice/string-examples/equals/example2/ |
| Learn how to use compareTo() to determine the alphabetical order of two Strings and understand what the returned value means. | https://learn.java/learning/apcsa-practice/string-examples/compareto/example1/ |
| Learn how compareTo() handles strings that differ only in case. | https://learn.java/learning/apcsa-practice/string-examples/compareto/example2/ |
| Learn how to use compareTo() in combination with if statements to find the alphabetically first string among several values. | https://learn.java/learning/apcsa-practice/string-examples/compareto/example3/ |
| Learn how to use compareTo() with a > 0 condition to find the alphabetically last string among several values. | https://learn.java/learning/apcsa-practice/string-examples/compareto/example4/ |
| Learn how to use compareTo() to determine the alphabetical rank of a string among a group of values. | https://learn.java/learning/apcsa-practice/string-examples/compareto/example5/ |
| Learn how to use split() to break a String into an array of words, and how to access the first and last elements. | https://learn.java/learning/apcsa-practice/string-examples/split/example1/ |
| Learn how to use split() twice — first to break a multi-line string into lines, then to break each line into fields. | https://learn.java/learning/apcsa-practice/string-examples/split/example2/ |
| https://www.twitter.com/java | |
| https://github.com/openjdk | |
| https://youtube.com/java | |
| Copyright | https://www.oracle.com/legal/copyright.html |
| Terms of Use | https://www.oracle.com/legal/terms.html |
| Privacy | https://www.oracle.com/legal/privacy/ |
| Trademarks | https://www.oracle.com/legal/trademarks.html |
| https://www.oracle.com |
Viewport: width=device-width, initial-scale=1.0
Robots: index,follow