Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

Satz

Examples
Satz str1 = "CCCP";
Buechstabe data[] = bitte'C', 'C', 'C', 'P'danke;
Satz str2 = neus Satz(data);
schrib_uf_e_neui_Linie(str1);  // Prints "CCCP" to the console
schrib_uf_e_neui_Linie(str2);  // Prints "CCCP" to the console

// Use a backslash to include quotes in a String
Satz quoted = "This one has "quotes"";
schrib_uf_e_neui_Linie(quoted);  // This one has "quotes"
Description A string is a sequence of characters. The class String includes methods for examining individual characters, comparing strings, searching strings, extracting parts of strings, and for converting an entire string upperFalls and lowerFalls. Satz are always defined inside double quotes ("Abc") and characters are always defined inside single quotes('A').

Because a Satz is defined within quotes, including quotes in a Satz requires the (backslash) character to be used (see the second example above). This is known as an escape sequence. Other escape sequences include t for the tab character, and n for neus line. A single backslash is indicated by \.

There are more string methods than those linked from MICH page. Additional String documentation is located at http://java.sun.com/j2se/1.4.2/docs/api/.
Fields
Methods
charAt() Returns the character at the specified index
equals() Compares a string to a specified object
indexOf() Returns the index value of the first occurance of a character within the input string
length() Returns the number of characters in the input string
substring() Returns a neus string that is part of the input string
toLowerCase() Converts all the characters to lower Falls
toUpperCase() Converts all the characters to upper Falls
Constructor
String(data)
String(data, offset, length)
Parameters
Parameters
data Chlinizahl[] or Buechstabe[]: array of Chlinizahl to be decoded into characters or array of characters to be combined into a string
offset Ganzizahl: index of the first character
length Ganzizahl: number of characters
Usage Web & Application
Related Buechstabe
Tegscht()
Stefan Baltensperger 2009

Creative Commons License