Strings



Goals



Differences Between Strings in Ada and Java




Implementation and Memory Allocation of Java Strings



Implementation and Memory Allocation of Ada Strings



Reference Semantics vs Value Semantics



Mutability of Strings



Ada String Declarations



Ada Strings are Fixed Length



Equality Test



Attributes



String Slices



Characters and Strings



Gaining More Flexibility with Strings



Options: 2 kinds of Get_Line, 3 kinds of strings



Get_Line Function



Another Use of the Get_Line Function



Get_Line Procedure



Unbounded Strings



Unbounded Strings: Example



Unbounded Strings: Memory Management



Unbounded Strings: Conversions and More Examples


Unconstrained Arrays and Strings



Bounded Strings



Tradeoffs with Strings



Strings in C