CSE 114 Study Guide - Final Guide: Karl Agathon, Extended Smtp
Document Summary
String length() returns an int, the length of the string. returns the index of the first occurrence of the substring (sub) in the given string. if an offset is provided, then returns the index of the first occurrence after the offset. If the string is not found, returns 1. returns the character at position index in the string returns a substring starting from index start (inclusive), up to index end (exclusive). if just the start integer is provided, then returns the substring from the start index to the end of the string. if this string comes before the other string in the dictionary, returns a 1. if they are equal, 1. returns a string that has been made either all caps or all lowercase indexof(string sub) indexof(string sub, int offset) charat(int index) substring(int start, int end) substring(int start) compareto(string other) touppercase() tolowercase()