Voice Application Specification. SBString

Size: px
Start display at page:

Download "Voice Application Specification. SBString"

Transcription

1 Voice Application Specification Page 1 of 52 SBString Voice Application Specification SBString Thu, 10-Jan-2013

2 Voice Application Specification Page 2 of 52 SBString Revision History Revision number Change tes Revised by Date 1.0 Initial Selim Budakoğlu Supported method list added Selim Budakoğlu

3 Voice Application Specification Page 3 of 52 SBString Table of Contents 1. Call Flow Diagrams Call Flow Diagram Legend Application Call Flow Diagrams Page: main Page: split Page: charat Page: length Page: substring Page: indexof Page: lastindexof Page: touppercase Page: tolowercase Page: replace Page: replaceall Page: replacefirst Element Configurations Element Configurations in Page Page: main Page: split Page: charat Page: length Page: substring Page: indexof Page: lastindexof Page: touppercase Page: tolowercase Page: replace Page: replaceall Page: replacefirst Recording List Prompts Page: main Page: split Page: charat Page: length Page: substring Page: indexof Page: lastindexof Page: touppercase Page: tolowercase Page: replace Page: replaceall...51

4 Voice Application Specification Page 4 of 52 SBString Page: replacefirst...52

5 Voice Application Specification Page 5 of 52 SBString Introduction SBString custom element is written to have basic string functions on Cisco Unified Call Studio builder perspective. Currently the element supports the methods below; (1) split (2) charat (3) length (4) substring (5) indexof (6) lastindexof (7) touppercase (8) tolowercase (9) replace (10) replaceall (11) replacefirst To be able to use SBString in Cisco Unified Call Studio ; 1. Copy StringManager.class file under project path below; 2. Close then reopen the project. 3. A local element that is called SBString will be shown in Elements/Local Elements/UCCE EMEAR folder.

6 Voice Application Specification Page 6 of 52 SBString The application that is explained in this document is created to test and simulate SBString custom element.

7 Voice Application Specification Page 7 of 52 SBString 1. Call Flow Diagrams 1.1. Call Flow Diagram Legend Start of Call - The single main entry point into the voice application. Voice Element - A reusable, VoiceXML-producing dialog with a fixed or dynamically produced configuration. Action Element - Encapsulates business logic that performs tasks that are t the call-flow (i.e., has only one exit state). Web Service Element - An embedded web service interaction. Decision Element - Encapsulates business logic that makes decisions that are mapped to at least two exit states. Flag - System records the traversal of the call through this element. VoiceXML Insert - A special element that allows for the direct entry of VoiceXML markup. Hot Event - A global event that executes the developer-specified actions when it is caught. Hot Link - A globally accessible utterance and/or key press that immediately brings the caller to a specified part of the call-flow or throws an event. Application Transfer - Provides "virtual" transfers to other voice applications running on the same instance of Call Services. Element Group - Represents a consolidated group of elements. Page Entry - This represents an entry point into a particular page in the call flow workspace.

8 Voice Application Specification Page 8 of 52 SBString Page Connector - This element provides connectivity to other pages via the "Page Entry" element. Subdialog Start - This element is used as the entrance point to an application that is invoked as a subdialog. Subdialog Return - This element is used as the exit point to return control and data back to the calling application. Hang Up - This element is used to invoke a hang up and call end.

9 Voice Application Specification Page 9 of 52 SBString 1.2. Application Call Flow Diagrams Page: main

10 Voice Application Specification Page 10 of 52 SBString Page: split

11 Voice Application Specification Page 11 of 52 SBString Page: charat

12 Voice Application Specification Page 12 of 52 SBString Page: length

13 Voice Application Specification Page 13 of 52 SBString Page: substring

14 Voice Application Specification Page 14 of 52 SBString Page: indexof

15 Voice Application Specification Page 15 of 52 SBString Page: lastindexof

16 Voice Application Specification Page 16 of 52 SBString Page: touppercase

17 Voice Application Specification Page 17 of 52 SBString Page: tolowercase

18 Voice Application Specification Page 18 of 52 SBString Page: replace

19 Voice Application Specification Page 19 of 52 SBString Page: replaceall

20 Voice Application Specification Page 20 of 52 SBString Page: replacefirst

21 Voice Application Specification Page 21 of 52 SBString 2. Element Configurations 2.1. Element Configurations in Page Page: main Menu - Voice Element Input Mode both Noinput Timeout 5s Digits Max NoInput Count 1 Digits Max NoMatch Count 1 Digits Confidence Level 0.40 Min Digits 1 Max Digits 2 Disable Hotlinks false Secure Logging false Maxnbest 1 VoiceXML Property Prompts Digits Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS s yes SELECT METHOD (1) split (2) charat (3) length (4) substring (5) indexof (6) lastindexof (7) touppercase (8) tolowercase (9) replace (10) replaceall (11) replacefirst (AnyOther) EXIT

22 Voice Application Specification Page 22 of 52 SBString Language next Yes max_input Start Of Call Counter Equals Split Count CharAt value Length value Substring value IndexOf value LastIndexOf value ToUpperCase value ToLowerCase value Replace value ReplaceAll value ReplaceFirst value Menu max_match max_input Method Hang Up Menu Method - Decision Decision Editor <kwledge_base> <rule name="method" default_exit_state="undefined"> <exit_state name="split" conjugate="and"> <number operator="equal"> <data> <element name="menu" variable="value" /> </data> <constant_number value="1" /> </number> </exit_state> <exit_state name="charat" conjugate="and"> <number operator="equal">

23 Voice Application Specification Page 23 of 52 SBString <data> <element name="menu" variable="value" /> </data> <constant_number value="2" /> </number> </exit_state> <exit_state name="length" conjugate="and"> <number operator="equal"> <data> <element name="menu" variable="value" /> </data> <constant_number value="3" /> </number> </exit_state> <exit_state name="substring" conjugate="and"> <number operator="equal"> <data> <element name="menu" variable="value" /> </data> <constant_number value="4" /> </number> </exit_state> <exit_state name="indexof" conjugate="and"> <number operator="equal"> <data> <element name="menu" variable="value" /> </data> <constant_number value="5" /> </number> </exit_state> <exit_state name="lastindexof" conjugate="and"> <number operator="equal"> <data> <element name="menu" variable="value" /> </data> <constant_number value="6" /> </number> </exit_state> <exit_state name="touppercase" conjugate="and"> <number operator="equal"> <data> <element name="menu" variable="value" /> </data> <constant_number value="7" /> </number> </exit_state> <exit_state name="tolowercase" conjugate="and"> <number operator="equal"> <data> <element name="menu" variable="value" /> </data> <constant_number value="8" /> </number> </exit_state> <exit_state name="replace" conjugate="and"> <number operator="equal">

24 Voice Application Specification Page 24 of 52 SBString <data> <element name="menu" variable="value" /> </data> <constant_number value="9" /> </number> </exit_state> <exit_state name="replaceall" conjugate="and"> <number operator="equal"> <data> <element name="menu" variable="value" /> </data> <constant_number value="10" /> </number> </exit_state> <exit_state name="replacefirst" conjugate="and"> <number operator="equal"> <data> <element name="menu" variable="value" /> </data> <constant_number value="11" /> </number> </exit_state> </rule> </kwledge_base> Menu split charat length substring indexof lastindexof touppercase tolowercase replace replaceall replacefirst undefined SBString Split SBString CharAt SBString Length SBString Substring SBString IndexOf SBString LastIndexOf SBString ToUpperCase SBString ToLowerCase SBString Replace SBString ReplaceAll SBString ReplaceFirst Hang Up

25 Voice Application Specification Page 25 of 52 SBString Page: split Check Counter - Decision Decision Editor <kwledge_base> <rule name="check Counter" default_exit_state="5"> <exit_state name="1" conjugate="and"> <number operator="equal"> <data> <element name="counter" variable="count" /> </data> <constant_number value="1" /> </number> </exit_state> <exit_state name="2" conjugate="and"> <number operator="equal"> <data> <element name="counter" variable="count" /> </data> <constant_number value="2" /> </number> </exit_state> <exit_state name="3" conjugate="and"> <number operator="equal"> <data> <element name="counter" variable="count" /> </data> <constant_number value="3" /> </number> </exit_state> <exit_state name="4" conjugate="and"> <number operator="equal"> <data> <element name="counter" variable="count" /> </data> <constant_number value="4" /> </number> </exit_state> </rule> </kwledge_base> Counter 1 Token1 2 Token2 3 Token3 4 Token4

26 Voice Application Specification Page 26 of 52 SBString 5 Token5 - split(string regex,int limit) Splits this string around matches of the given regular expression. The array returned by this method contains each substring of this string that is terminated by ather substring that matches the given expression or is terminated by the end of the string. The substrings in the array are in the order in which they occur in this string. If the expression does t match any part of the input then the resulting array has just one element, namely this string. The limit parameter controls the number of times the pattern is applied and therefore affects the length of the resulting array. If the limit n is greater than zero then the pattern will be applied at most n - 1 times, the array's length will be greater than n, and the array's last entry will contain all input beyond the last matched delimiter. If n is n-positive then the pattern will be applied as many times as possible and the array can have any length. If n is zero then the pattern will be applied as many times as possible, the array can have any length, and trailing empty strings will be discarded. The string "boo:and:foo", for example, yields the following results with these parameters: Regex Limit Result : 2 { "boo", "and:foo" } : 5 { "boo", "and", "foo" } : -2 { "boo", "and", "foo" } o 5 { "b", "", ":and:f", "", "" } o -2 { "b", "", ":and:f", "", "" } o 0 { "b", "", ":and:f" } Parameters: regex - the delimiting regular expression limit - the result threshold, as described above Returns: the array of strings computed by splitting this string around matches of the given regular expression split(string regex) Splits this string around matches of the given regular expression. This method works as if by invoking the two-argument split method with the given expression and a limit argument of zero. Trailing empty strings are therefore t included in the resulting array. The string "boo:and:foo", for example, yields the following results with these expressions:

27 Voice Application Specification Page 27 of 52 SBString Regex Result : { "boo", "and", "foo" } o { "b", "", ":and:f" } Parameters: regex - the delimiting regular expression Returns: the array of strings computed by splitting this string around matches of the given regular expression Counter - Action Element Initial Count 0 Type increment Step Size 1 No Counter Equals Split Count Check Counter Counter Equals Split Count - Decision Decision Editor <kwledge_base> <rule name="counter Equals Split Count" default_exit_state="no"> <exit_state name="yes" conjugate="and"> <number operator="equal"> <data> <element name="counter" variable="count" /> </data> <data> <element name="sbstring Split" variable="value" /> </data> </number> </exit_state> </rule> </kwledge_base>

28 Voice Application Specification Page 28 of 52 SBString Token5 Token1 Token3 Token2 Split value Token4 Yes No Menu Counter SBString Split - Action Element String boo,and,foo Method split Regex, Limit 2 split Method Split value Split value - Voice Element

29 Voice Application Specification Page 29 of 52 SBString VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS s Language yes Split Token Count :{.Element.SBString Split.value} SBString Split Counter Equals Split Count Token1 - Voice Element VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS s Language yes TOKEN 1 : {.Session.Token1}

30 Voice Application Specification Page 30 of 52 SBString 1 Check Counter Counter Equals Split Count Token2 - Voice Element VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS s Language yes TOKEN 2 : {.Session.Token2} 2 Check Counter Counter Equals Split Count Token3 - Voice Element

31 Voice Application Specification Page 31 of 52 SBString VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS s Language yes TOKEN 3 : {.Session.Token3} 3 Check Counter Counter Equals Split Count Token4 - Voice Element VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS s Language yes TOKEN 4 : {.Session.Token4}

32 Voice Application Specification Page 32 of 52 SBString 4 Check Counter Counter Equals Split Count Token5 - Voice Element VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS s Language yes TOKEN 5 : {.Session.Token5} 5 Check Counter Counter Equals Split Count Page: charat CharAt value - Voice Element

33 Voice Application Specification Page 33 of 52 SBString VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS s Language yes CharAt : {.Element.SBString CharAt.value} SBString CharAt Menu - charat(int index) Returns the char value at the specified index. An index ranges from 0 to length() - 1. The first char value of the sequence is at index 0, the next at index 1, and so on, as for array indexing. If the char value specified by the index is a surrogate, the surrogate value is returned. Parameters: index - the index of the char value. Returns: the char value at the specified index of this string. The first char value is at index 0. SBString CharAt - Action Element

34 Voice Application Specification Page 34 of 52 SBString String boo and foo Method charat Index 5 charat Method CharAt value Page: length - length() Returns the length of this string. The length is equal to the number of Unicode code units in the string. Returns: the length of the sequence of characters represented by this object. Length value - Voice Element VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS yes Length : {.Element.SBString Length.value}

35 Voice Application Specification Page 35 of 52 SBString s Language SBString Length Menu SBString Length - Action Element String Method boo and foo length length Method Length value Page: substring - substring(int beginindex) Returns a new string that is a substring of this string. The substring begins with the character at the specified index and extends to the end of this string.

36 Voice Application Specification Page 36 of 52 SBString Examples: "unhappy".substring(2) returns "happy" "Harbison".substring(3) returns "bison" "emptiness".substring(9) returns "" (an empty string) Parameters: beginindex - the beginning index, inclusive. Returns: the specified substring. substring(int beginindex,int endindex) Returns a new string that is a substring of this string. The substring begins at the specified beginindex and extends to the character at index endindex - 1. Thus the length of the substring is endindex-beginindex. Examples: "hamburger".substring(4, 8) returns "urge" "smiles".substring(1, 5) returns "mile" Parameters: beginindex - the beginning index, inclusive. endindex - the ending index, exclusive. Returns: the specified substring. SBString Substring - Action Element String hamburger Method substring BeginIndex 4 EndIndex 8 substring Method Substring value

37 Voice Application Specification Page 37 of 52 SBString Substring value - Voice Element VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS s Language yes Substring : {.Element.SBString Substring.value} SBString Substring Menu Page: indexof - indexof(string str) Returns the index within this string of the first occurrence of the specified substring. Parameters: str - any string. Returns: if the string argument occurs as a substring within this object, then the index of the first character of the first such substring is returned; if it does t occur as a substring, -1 is returned. indexof(string str,int fromindex)

38 Voice Application Specification Page 38 of 52 SBString Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.if such value exists, then -1 is returned. Parameters: str - the substring for which to search. fromindex - the index from which to start the search. Returns: the index within this string of the first occurrence of the specified substring, starting at the specified index. IndexOf value - Voice Element VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS s Language yes IndexOf : {.Element.SBString IndexOf.value} SBString IndexOf Menu SBString IndexOf - Action Element

39 Voice Application Specification Page 39 of 52 SBString String ucce emear Method indexof Str e FromIndex 5 indexof Method IndexOf value Page: lastindexof - lastindexof(string str) Returns the index within this string of the rightmost occurrence of the specified substring. The rightmost empty string "" is considered to occur at the index value this.length(). Parameters: str - the substring to search for. Returns: if the string argument occurs one or more times as a substring within this object, then the index of the first character of the last such substring is returned. If it does t occur as a substring, -1 is returned. lastindexof(string str,int fromindex) Returns the index within this string of the last occurrence of the specified substring, searching backward starting at the specified index.if such value exists, then -1 is returned. Parameters: str - the substring to search for. fromindex - the index to start the search from. Returns: the index within this string of the last occurrence of the specified substring. LastIndexOf value - Voice Element

40 Voice Application Specification Page 40 of 52 SBString VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS s Language yes LastIndexOf : {.Element.SBString LastIndexOf.value} SBString LastIndexOf Menu SBString LastIndexOf - Action Element String ucce emear Method lastindexof Str cc FromIndex 7 lastindexof Method

41 Voice Application Specification Page 41 of 52 SBString LastIndexOf value Page: touppercase - touppercase() Converts all of the characters in this String to upper case using the rules of the default locale. Note: This method is locale sensitive, and may produce unexpected results if used for strings that are intended to be interpreted locale independently. Examples are programming language identifiers, protocol keys, and HTML tags. For instance, "title".touppercase() in a Turkish locale returns "T?TLE", where '?' is the LATIN CAPITAL LETTER I WITH DOT ABOVE character. To obtain correct results for locale insensitive strings, use touppercase(locale.english). Returns: the String, converted to uppercase. SBString ToUpperCase - Action Element String Method ucce emear touppercase touppercase Method ToUpperCase value

42 Voice Application Specification Page 42 of 52 SBString ToUpperCase value - Voice Element VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS s Language yes ToUpperCase : {.Element.SBString ToUpperCase.value} SBString ToUpperCase Menu Page: tolowercase - String tolowercase() Converts all of the characters in this String to lower case using the rules of the default locale. Note: This method is locale sensitive, and may produce unexpected results if used for strings that are intended to be interpreted locale independently. Examples are programming language identifiers, protocol keys, and HTML tags. For instance, "TITLE".toLowerCase() in a Turkish locale returns "t?tle", where '?' is the LATIN SMALL LETTER DOTLESS I character. To obtain correct results for locale insensitive strings, use tolowercase(locale.english). Returns:

43 Voice Application Specification Page 43 of 52 SBString the String, converted to lowercase. SBString ToLowerCase - Action Element String Method UCCE EMEAR tolowercase tolowercase Method ToLowerCase value ToLowerCase value - Voice Element VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS s Language yes ToLowerCase : {.Element.SBString ToLowerCase.value}

44 Voice Application Specification Page 44 of 52 SBString SBString ToLowerCase Menu Page: replace - replace(string target,string replacement) Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence. The replacement proceeds from the beginning of the string to the end, for example, replacing "aa" with "b" in the string "aaa" will result in "ba" rather than "ab". Parameters: target - The sequence of char values to be replaced replacement - The replacement sequence of char values Returns: The resulting string Replace value - Voice Element VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS s Language yes Replace : {.Element.SBString Replace.value}

45 Voice Application Specification Page 45 of 52 SBString SBString Replace Menu SBString Replace - Action Element String Method Replacement Target ucce emear replace r TT replace Method Replace value Page: replaceall - replaceall(string regex,string replacement) Replaces each substring of this string that matches the given regular expression with the given replacement. Note that backslashes (\) and dollar signs ($) in the replacement string may cause the results to be different than if it were being treated as a literal replacement string.

46 Voice Application Specification Page 46 of 52 SBString Parameters: regex - the regular expression to which this string is to be matched replacement - the string to be substituted for each match Returns: The resulting String ReplaceAll value - Voice Element VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI TTS s Language yes ReplaceAll : {.Element.SBString ReplaceAll.value} SBString ReplaceAll Menu SBString ReplaceAll - Action Element String Method Regex ucce emear replaceall e

47 Voice Application Specification Page 47 of 52 SBString Replacement RR replaceall Method ReplaceAll value Page: replacefirst - replacefirst(string regex,string replacement) Replaces the first substring of this string that matches the given regular expression with the given replacement. Note that backslashes (\) and dollar signs ($) in the replacement string may cause the results to be different than if it were being treated as a literal replacement string. Parameters: regex - the regular expression to which this string is to be matched replacement - the string to be substituted for the first match Returns: The resulting String ReplaceFirst value - Voice Element VoiceXML Property Prompts Initial () - audio item 1 Audio File/TTS Use Audio Path URI yes

48 Voice Application Specification Page 48 of 52 SBString TTS s Language ReplaceFirst : {.Element.SBString ReplaceFirst.value} SBString ReplaceFirst Menu SBString ReplaceFirst - Action Element String Method Regex Replacement ucce emear replacefirst c RR replacefirst Method ReplaceFirst value

49 Voice Application Specification Page 49 of 52 SBString 3. Recording List 3.1. Prompts Page: main Element Menu Audio Group (Language) Digits Initial () File Name Transcript Language s SELECT METHOD (1) split (2) charat (3) length (4) substring (5) indexof (6) lastindexof (7) touppercase (8) tolowercase (9) replace (10) replaceall (11) replacefirst (AnyOther) EXIT

50 Voice Application Specification Page 50 of 52 SBString Page: split Element Split value Token1 Token2 Token3 Token4 Token5 Audio Group (Language) Initial () File Name Transcript Language s Split Token Count :{.Element.SBString Split.value} Initial () TOKEN 1 : {.Session.Token1} Initial () TOKEN 2 : {.Session.Token2} Initial () TOKEN 3 : {.Session.Token3} Initial () TOKEN 4 : {.Session.Token4} Initial () TOKEN 5 : {.Session.Token5} Page: charat Element CharAt value Audio Group (Language) Initial () File Name Transcript Language s CharAt : {.Element.SBString CharAt.value} Page: length Element Length value Audio Group (Language) Initial () File Name Transcript Language s Length : {.Element.SBString Length.value} Page: substring Element Substring value Audio Group (Language) File Name Transcript Language s Initial () Substring : {.Element.SBString Substring.value} Page: indexof

51 Voice Application Specification Page 51 of 52 SBString Element IndexOf value Audio Group (Language) Initial () File Name Transcript Language s IndexOf : {.Element.SBString IndexOf.value} Page: lastindexof Element LastIndexOf value Audio Group (Language) File Name Transcript Language s Initial () LastIndexOf : {.Element.SBString LastIndexOf.value} Page: touppercase Element ToUpperCase value Audio Group (Language) File Name Transcript Language s Initial () ToUpperCase : {.Element.SBString ToUpperCase.value} Page: tolowercase Element ToLowerCase value Audio Group (Language) File Name Transcript Language s Initial () ToLowerCase : {.Element.SBString ToLowerCase.value} Page: replace Element Replace value Audio Group (Language) Initial () File Name Transcript Language s Replace : {.Element.SBString Replace.value} Page: replaceall

52 Voice Application Specification Page 52 of 52 SBString Element ReplaceAll value Audio Group (Language) File Name Transcript Language s Initial () ReplaceAll : {.Element.SBString ReplaceAll.value} Page: replacefirst Element ReplaceFirst value Audio Group (Language) File Name Transcript Language s Initial () ReplaceFirst : {.Element.SBString ReplaceFirst.value}

"Hello" " This " + "is String " + "concatenation"

Hello  This  + is String  + concatenation Strings About Strings Strings are objects, but there is a special syntax for writing String literals: "Hello" Strings, unlike most other objects, have a defined operation (as opposed to a method): " This

More information

Appendix 3. Description: Syntax: Parameters: Return Value: Example: Java - String charat() Method

Appendix 3. Description: Syntax: Parameters: Return Value: Example: Java - String charat() Method Appendix 3 Java - String charat() Method This method returns the character located at the String's specified index. The string indexes start from zero. public char charat(int index) index -- Index of the

More information

Assoc. Prof. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

Assoc. Prof. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved. Assoc. Prof. Marenglen Biba (C) 2010 Pearson Education, Inc. All This chapter discusses class String, from the java.lang package. These classes provide the foundation for string and character manipulation

More information

Assoc. Prof. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved.

Assoc. Prof. Marenglen Biba. (C) 2010 Pearson Education, Inc. All rights reserved. Assoc. Prof. Marenglen Biba (C) 2010 Pearson Education, Inc. All Advanced Java This chapter discusses class String, class StringBuilder and class Character from the java.lang package. These classes provide

More information

Strings. Strings, which are widely used in Java programming, are a sequence of characters. In the Java programming language, strings are objects.

Strings. Strings, which are widely used in Java programming, are a sequence of characters. In the Java programming language, strings are objects. Strings Strings, which are widely used in Java programming, are a sequence of characters. In the Java programming language, strings are objects. The Java platform provides the String class to create and

More information

Form. Settings, page 2 Element Data, page 7 Exit States, page 8 Audio Groups, page 9 Folder and Class Information, page 9 Events, page 10

Form. Settings, page 2 Element Data, page 7 Exit States, page 8 Audio Groups, page 9 Folder and Class Information, page 9 Events, page 10 The voice element is used to capture any input from the caller, based on application designer-specified grammars. The valid caller inputs can be specified either directly in the voice element settings

More information

Strings. Strings and their methods. Dr. Siobhán Drohan. Produced by: Department of Computing and Mathematics

Strings. Strings and their methods. Dr. Siobhán Drohan. Produced by: Department of Computing and Mathematics Strings Strings and their methods Produced by: Dr. Siobhán Drohan Department of Computing and Mathematics http://www.wit.ie/ Topics list Primitive Types: char Object Types: String Primitive vs Object Types

More information

Strings. Strings and their methods. Mairead Meagher Dr. Siobhán Drohan. Produced by: Department of Computing and Mathematics

Strings. Strings and their methods. Mairead Meagher Dr. Siobhán Drohan. Produced by: Department of Computing and Mathematics Strings Strings and their methods Produced by: Mairead Meagher Dr. Siobhán Drohan Department of Computing and Mathematics http://www.wit.ie/ Topics list Primitive Types: char Object Types: String Primitive

More information

Menu Support for 2_Option_Menu Through 10_Option_Menu

Menu Support for 2_Option_Menu Through 10_Option_Menu Menu Support for 2_Option_Menu Through 10_Option_Menu These voice elements define menus that support from 2 to 10 options. The Menu voice elements are similar to the Form voice element, however the number

More information

Eng. Mohammed Abdualal

Eng. Mohammed Abdualal Islamic University of Gaza Faculty of Engineering Computer Engineering Department Computer Programming Lab (ECOM 2124) Lab 2 String & Character Eng. Mohammed Abdualal String Class In this lab, you have

More information

Cisco CVP VoiceXML 3.0. Element Specifications

Cisco CVP VoiceXML 3.0. Element Specifications Cisco CVP VoiceXML 3.0 CISCO CVP VOICEXML 3.0 Publication date: 14 January 2005 Copyright (C) 2000-2005 Audium Corporation. All rights reserved. Distributed by Cisco Systems, Inc. under license from Audium

More information

Creating Strings. String Length

Creating Strings. String Length Strings Strings, which are widely used in Java programming, are a sequence of characters. In the Java programming language, strings are objects. The Java platform provides the String class to create and

More information

Activity 9: Object-Oriented

Activity 9: Object-Oriented Activity 9: Object-Oriented Internally, the library class java.lang.string stores an array of characters. It also provides a variety of useful methods for comparing, manipulating, and searching text in

More information

Activity 9: Object-Oriented

Activity 9: Object-Oriented Activity 9: Object-Oriented Internally, the library class java.lang.string stores an array of characters. It also provides a variety of useful methods for comparing, manipulating, and searching text in

More information

Chapter 8: Strings and Things

Chapter 8: Strings and Things Chapter 8: Strings and Things Think Java: How to Think Like a Computer Scientist 5.1.2 by Allen B. Downey Word Of Fortune Program this will be cleared when it's working 1-2 Chapter Topics Chapter 8 discusses

More information

Voice Foundation Classes

Voice Foundation Classes The Unified CVP are a Java API for generating VoiceXML. Any custom component wishing to produce VoiceXML must use the VFCs because their main purpose is to act as an abstraction layer between VoiceXML

More information

Class Library java.lang Package. Bok, Jong Soon

Class Library java.lang Package. Bok, Jong Soon Class Library java.lang Package Bok, Jong Soon javaexpert@nate.com www.javaexpert.co.kr Object class Is the root of the class hierarchy. Every class has Object as a superclass. If no inheritance is specified

More information

CS1150 Principles of Computer Science Math Functions, Characters and Strings (Part II)

CS1150 Principles of Computer Science Math Functions, Characters and Strings (Part II) CS1150 Principles of Computer Science Math Functions, Characters and Strings (Part II) Yanyan Zhuang Department of Computer Science http://www.cs.uccs.edu/~yzhuang CS1150 UC. Colorado Springs How to generate

More information

Cisco Unified CVP VoiceXML components in Detail

Cisco Unified CVP VoiceXML components in Detail Cisco Unified CVP VoiceXML components in Detail Some components of VXML Server require detailed explanations on how to use them properly, especially when their functionality requires or is extended by

More information

STUDENT LESSON A10 The String Class

STUDENT LESSON A10 The String Class STUDENT LESSON A10 The String Class Java Curriculum for AP Computer Science, Student Lesson A10 1 STUDENT LESSON A10 The String Class INTRODUCTION: Strings are needed in many programming tasks. Much of

More information

Element Specifications for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 11.6(1)

Element Specifications for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 11.6(1) Element Specifications for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 11.6(1) First Published: 2017-08-24 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose,

More information

Introduction. VoiceXML overview. Traditional IVR technologies limitations

Introduction. VoiceXML overview. Traditional IVR technologies limitations Introduction Welcome to Cisco Unified Customer Voice Portal (Unified CVP), the most robust platform for building exciting, dynamic VoiceXML-based voice applications. Unified CVP: Allows users to build

More information

Using Java Classes Fall 2018 Margaret Reid-Miller

Using Java Classes Fall 2018 Margaret Reid-Miller Using Java Classes 15-121 Fall 2018 Margaret Reid-Miller Today Strings I/O (using Scanner) Loops, Conditionals, Scope Math Class (random) Fall 2018 15-121 (Reid-Miller) 2 The Math Class The Math class

More information

JAVA PROGRAMMING LAB. ABSTRACT EXTRA LAB, In this Lab you will learn working with recursion, JRX, Java documentations

JAVA PROGRAMMING LAB. ABSTRACT EXTRA LAB, In this Lab you will learn working with recursion, JRX, Java documentations Islamic University of Gaza Faculty of Engineering Computer Engineering Dept. Computer Programming Lab (ECOM 2114) ABSTRACT EXTRA LAB, In this Lab you will learn working with recursion, JRX, Java documentations

More information

AP Computer Science. Strings. Credit: Slides are modified with permission from Barry Wittman at Elizabethtown College

AP Computer Science. Strings. Credit: Slides are modified with permission from Barry Wittman at Elizabethtown College Strings AP Computer Science Credit: Slides are modified with permission from Barry Wittman at Elizabethtown College This work is licensed under an Attribution-NonCommercial-ShareAlike 3.0 Unported License

More information

JAVASCRIPT BASICS. JavaScript String Functions. Here is the basic condition you have to follow. If you start a string with

JAVASCRIPT BASICS. JavaScript String Functions. Here is the basic condition you have to follow. If you start a string with JavaScript String Functions Description String constants can be specified by enclosing characters or strings within double quotes, e.g. "WikiTechy is the best site to learn JavaScript". A string constant

More information

CST242 Strings and Characters Page 1

CST242 Strings and Characters Page 1 CST242 Strings and Characters Page 1 1 2 3 4 5 6 Strings, Characters and Regular Expressions CST242 char and String Variables A char is a Java data type (a primitive numeric) that uses two bytes (16 bits)

More information

PIC 40A. Lecture 10: JS: Wrapper objects, Input and Output, Control structures, random numbers. Copyright 2011 Jukka Virtanen UCLA 1 04/24/17

PIC 40A. Lecture 10: JS: Wrapper objects, Input and Output, Control structures, random numbers. Copyright 2011 Jukka Virtanen UCLA 1 04/24/17 PIC 40A Lecture 10: JS: Wrapper objects, Input and Output, Control structures, random numbers 04/24/17 Copyright 2011 Jukka Virtanen UCLA 1 Objects in JS In C++ we have classes, in JS we have OBJECTS.

More information

CS-140 Fall Binghamton University. Methods. Sect. 3.3, 8.2. There s a method in my madness.

CS-140 Fall Binghamton University. Methods. Sect. 3.3, 8.2. There s a method in my madness. Methods There s a method in my madness. Sect. 3.3, 8.2 1 Example Class: Car How Cars are Described Make Model Year Color Owner Location Mileage Actions that can be applied to cars Create a new car Transfer

More information

Eng. Mohammed Abdualal

Eng. Mohammed Abdualal Islamic University of Gaza Faculty of Engineering Computer Engineering Department Computer Programming Lab (ECOM 2114) Created by Eng: Mohammed Alokshiya Modified by Eng: Mohammed Abdualal Lab 4 Characters

More information

Lab 14 & 15: String Handling

Lab 14 & 15: String Handling Lab 14 & 15: String Handling Prof. Navrati Saxena TA: Rochak Sachan String Handling 9/11/2012 22 String Handling Java implements strings as objects of type String. Once a String object has been created,

More information

Programming with Java

Programming with Java Programming with Java String & Making Decision Lecture 05 First stage Software Engineering Dep. Saman M. Omer 2017-2018 Objectives By the end of this lecture you should be able to : Understand another

More information

Chapter 12 Strings and Characters. Dr. Hikmat Jaber

Chapter 12 Strings and Characters. Dr. Hikmat Jaber Chapter 12 Strings and Characters Dr. Hikmat Jaber 1 The String Class Constructing a String: String message = "Welcome to Java ; String message = new String("Welcome to Java ); String s = new String();

More information

About Codefrux While the current trends around the world are based on the internet, mobile and its applications, we try to make the most out of it. As for us, we are a well established IT professionals

More information

A variable is a name for a location in memory A variable must be declared

A variable is a name for a location in memory A variable must be declared Variables A variable is a name for a location in memory A variable must be declared, specifying the variable's name and the type of information that will be held in it data type variable name int total;

More information

Chapter 29: String and Object References Bradley Kjell (Revised 06/15/2008)

Chapter 29: String and Object References Bradley Kjell (Revised 06/15/2008) Chapter 29: String and Object References Bradley Kjell (Revised 06/15/2008) In previous chapters, methods were called with parameters that were primitive data types. This chapter discusses how to use object

More information

Introductory Mobile Application Development

Introductory Mobile Application Development Notes Quick Links Introductory Mobile Application Development 152-160 Java Syntax Part 2 - Activity String Class Add section on Parse ArrayList Class methods. Book page 95. Toast Page 129 240 242 String

More information

Comments in a Java Program. Java Overview. Identifiers. Identifier Conventions. Primitive Data Types and Declaring Variables

Comments in a Java Program. Java Overview. Identifiers. Identifier Conventions. Primitive Data Types and Declaring Variables Comments in a Java Program Java Overview Comments can be single line comments like C++ Example: //This is a Java Comment Comments can be spread over multiple lines like C Example: /* This is a multiple

More information

Announcements. CompSci 100e Program Design and Analysis II

Announcements. CompSci 100e Program Design and Analysis II CompSci 100e Program Design and Analysis II January 18, 2011 Announcements Lab 0 was to get Eclipse/Ambient running Lab 1 (Jan 21/24) APTs APT Assignment out (do 7 APTs) 2 done in class, 2 in lab, 3 on

More information

IS502052: Enterprise Systems Development Concepts Lab 1: Java Review

IS502052: Enterprise Systems Development Concepts Lab 1: Java Review IS502052: Enterprise Systems Development Concepts Lab 1: Java Review I. Introduction In this first lab, we will review the Java Programming Language, since this course is focus on Java, especially, Java

More information

Javascript Methods. concat Method (Array) concat Method (String) charat Method (String)

Javascript Methods. concat Method (Array) concat Method (String) charat Method (String) charat Method (String) The charat method returns a character value equal to the character at the specified index. The first character in a string is at index 0, the second is at index 1, and so forth.

More information

Strings! Today! CSE String Methods!

Strings! Today! CSE String Methods! Strings CSE 1710 Lecture 14, 15 String Handling We have covered three chunks of material: Week 1: String Literals pp. 22-23; Fig 1.12; PT 1.8 Week 6: The String Class Section 6.1.1, pp. 219-220 The Masquerade

More information

Element Specifications for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 9.0(1)

Element Specifications for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 9.0(1) Element Specifications for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 9.0(1) First Published: July 06, 2012 Last Modified: vember 27, 2014 Americas Headquarters Cisco Systems,

More information

Mathematical Functions, Characters, and Strings. CSE 114, Computer Science 1 Stony Brook University

Mathematical Functions, Characters, and Strings. CSE 114, Computer Science 1 Stony Brook University Mathematical Functions, Characters, and Strings CSE 114, Computer Science 1 Stony Brook University http://www.cs.stonybrook.edu/~cse114 1 Static methods Remember the main method header? public static void

More information

Review. Single Pixel Filters. Spatial Filters. Image Processing Applications. Thresholding Posterize Histogram Equalization Negative Sepia Grayscale

Review. Single Pixel Filters. Spatial Filters. Image Processing Applications. Thresholding Posterize Histogram Equalization Negative Sepia Grayscale Review Single Pixel Filters Thresholding Posterize Histogram Equalization Negative Sepia Grayscale Spatial Filters Smooth Blur Low Pass Filter Sharpen High Pass Filter Erosion Dilation Image Processing

More information

CS112 Lecture: Characters and Strings

CS112 Lecture: Characters and Strings CS112 Lecture: Characters and Strings Objectives: Last Revised 3/21/06 1. To introduce the data type char and related basic information (escape sequences, Unicode). 2. To introduce the library classes

More information

Chapter 4 Mathematical Functions, Characters, and Strings

Chapter 4 Mathematical Functions, Characters, and Strings Chapter 4 Mathematical Functions, Characters, and Strings Liang, Introduction to Java Programming, Tenth Edition, Global Edition. Pearson Education Limited 2015 1 Motivations Suppose you need to estimate

More information

User Guide for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 10.5(1)

User Guide for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 10.5(1) User Guide for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 10.5(1) First Published: 2014-06-18 Last Modified: 2015-09-01 Americas Headquarters Cisco Systems, Inc. 170 West Tasman

More information

Java String Java String provides a lot of concepts that can be performed on a string such as compare, concat, equals, split, length, replace,

Java String Java String provides a lot of concepts that can be performed on a string such as compare, concat, equals, split, length, replace, Java String Java String provides a lot of concepts that can be performed on a string such as compare, concat, equals, split, length, replace, compareto, intern, substring etc. In java, string is basically

More information

CITS1231 Web Technologies. JavaScript Math, String, Array, Number, Debugging

CITS1231 Web Technologies. JavaScript Math, String, Array, Number, Debugging CITS1231 Web Technologies JavaScript Math, String, Array, Number, Debugging Last Lecture Introduction to JavaScript Variables Operators Conditional Statements Program Loops Popup Boxes Functions 3 This

More information

CS5000: Foundations of Programming. Mingon Kang, PhD Computer Science, Kennesaw State University

CS5000: Foundations of Programming. Mingon Kang, PhD Computer Science, Kennesaw State University CS5000: Foundations of Programming Mingon Kang, PhD Computer Science, Kennesaw State University Mathematical Functions Java provides many useful methods in the Math class for performing common mathematical

More information

Record_With_Confirm. Settings

Record_With_Confirm. Settings The voice element combines the functionality of the Record voice element with that of the Menu voice element. The voice element records the caller s voice, then prompts the caller to confirm that the recording

More information

CSE1710. Big Picture. Tuesday, Dec 02 is designated as a study day. No classes. Thursday, Dec 04 is last lecture.

CSE1710. Big Picture. Tuesday, Dec 02 is designated as a study day. No classes. Thursday, Dec 04 is last lecture. CSE1710 Click to edit Master Week text 12, styles Lecture 22 Second level Third level Fourth level Fifth level Fall 2014 Tuesday, Nov 25, 2014 1 Big Picture Tuesday, Dec 02 is designated as a study day.

More information

Midterm Exam 2 Thursday, November 15th, points (15% of final grade) Instructors: Jim Williams and Marc Renault

Midterm Exam 2 Thursday, November 15th, points (15% of final grade) Instructors: Jim Williams and Marc Renault Computer Sciences 200 Midterm Exam 2 Thursday, November 15th, 2018 100 points (15% of final grade) Instructors: Jim Williams and Marc Renault (Family) Last Name: (Given) First Name: CS Login Name: NetID

More information

Chapter 10: Text Processing and More about Wrapper Classes

Chapter 10: Text Processing and More about Wrapper Classes Chapter 10: Text Processing and More about Wrapper Classes Starting Out with Java: From Control Structures through Objects Fourth Edition by Tony Gaddis Addison Wesley is an imprint of 2010 Pearson Addison-Wesley.

More information

CSE143 Midterm Summer Name of Student: Section (e.g., AA): Student Number:

CSE143 Midterm Summer Name of Student: Section (e.g., AA): Student Number: CSE143 Midterm Summer 2017 Name of Student: Section (e.g., AA): Student Number: The exam is divided into six questions with the following points: # Problem Area Points Score ---------------------------------------------

More information

Mathematical Functions, Characters, and Strings. CSE 114, Computer Science 1 Stony Brook University

Mathematical Functions, Characters, and Strings. CSE 114, Computer Science 1 Stony Brook University Mathematical Functions, Characters, and Strings CSE 114, Computer Science 1 Stony Brook University http://www.cs.stonybrook.edu/~cse114 1 Static methods Remember the main method header? public static void

More information

The Irving K. Barber School of Arts and Sciences COSC 111 Final Exam Winter Term II Instructor: Dr. Bowen Hui. Tuesday, April 19, 2016

The Irving K. Barber School of Arts and Sciences COSC 111 Final Exam Winter Term II Instructor: Dr. Bowen Hui. Tuesday, April 19, 2016 First Name (Print): Last Name (Print): Student Number: The Irving K. Barber School of Arts and Sciences COSC 111 Final Exam Winter Term II 2016 Instructor: Dr. Bowen Hui Tuesday, April 19, 2016 Time: 6:00pm

More information

More on variables and methods

More on variables and methods More on variables and methods Robots Learning to Program with Java Byron Weber Becker chapter 7 Announcements (Oct 12) Reading for Monday Ch 7.4-7.5 Program#5 out Character Data String is a java class

More information

LABORATORY 117. Intorduction to VoiceXML

LABORATORY 117. Intorduction to VoiceXML LABORATORY 117 Intorduction to VoiceXML 1 TAC2000/2000 Outline XML VoiceXML Building your VoiceXML application on TellMe Studio 2 TAC2000/2000 XML Extensible Markup Language The de facto standard for defining

More information

Java s String Class. in simplest form, just quoted text. used as parameters to. "This is a string" "So is this" "hi"

Java s String Class. in simplest form, just quoted text. used as parameters to. This is a string So is this hi 1 Java s String Class in simplest form, just quoted text "This is a string" "So is this" "hi" used as parameters to Text constructor System.out.println 2 The Empty String smallest possible string made

More information

Computer Science 252 Problem Solving with Java The College of Saint Rose Spring Topic Notes: Strings

Computer Science 252 Problem Solving with Java The College of Saint Rose Spring Topic Notes: Strings Computer Science 252 Problem Solving with Java The College of Saint Rose Spring 2016 Topic Notes: Strings This semester we ve spent most of our time on applications that are graphical in nature: Manipulating

More information

CSE1710. Big Picture. Today is last day covering Ch 6. Tuesday, Dec 02 is designated as a study day. No classes. Thursday, Dec 04 is last lecture.

CSE1710. Big Picture. Today is last day covering Ch 6. Tuesday, Dec 02 is designated as a study day. No classes. Thursday, Dec 04 is last lecture. CSE1710 Click to edit Master Week text 12, styles Lecture 23 Second level Third level Fourth level Fifth level Fall 2014! Thursday, Nov 27, 2014 1 Big Picture Today is last day covering Ch 6 Tuesday, Dec

More information

Java Programming. String Processing. 1 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Java Programming. String Processing. 1 Copyright 2013, Oracle and/or its affiliates. All rights reserved. Java Programming String Processing 1 Copyright 2013, Oracle and/or its affiliates. All rights Overview This lesson covers the following topics: Read, search, and parse Strings Use StringBuilder to create

More information

Faculty of Science COMP-202A - Introduction to Computing I (Fall 2009) - All Sections Final Examination

Faculty of Science COMP-202A - Introduction to Computing I (Fall 2009) - All Sections Final Examination First Name: Last Name: McGill ID: Section: Faculty of Science COMP-202A - Introduction to Computing I (Fall 2009) - All Sections Final Examination Wednesday, December 16, 2009 Examiners: Mathieu Petitpas

More information

Chapter 8 Strings. Chapter 8 Strings

Chapter 8 Strings. Chapter 8 Strings Chapter 8 Strings Chapter 6 Arrays Chapter 7 Objects and Classes Chapter 8 Strings Chapter 9 Inheritance and Polymorphism GUI can be covered after 10.2, Abstract Classes Chapter 12 GUI Basics 10.2, Abstract

More information

Lecture 8: The String Class and Boolean Zen

Lecture 8: The String Class and Boolean Zen Lecture 8: The String Class and Boolean Zen Building Java Programs: A Back to Basics Approach by Stuart Reges and Marty Stepp Copyright (c) Pearson 2013. All rights reserved. Strings string: An object

More information

Strings are actually 'objects' Strings

Strings are actually 'objects' Strings Strings are actually 'objects' Strings What is an object?! An object is a concept that we can encapsulate data along with the functions that might need to access or manipulate that data. What is an object?!

More information

CS251L REVIEW Derek Trumbo UNM

CS251L REVIEW Derek Trumbo UNM CS251L REVIEW 2010.8.30 Derek Trumbo UNM Arrays Example of array thought process in Eclipse Arrays Multi-dimensional arrays are also supported by most PL s 2-dimensional arrays are just like a matrix (monthly

More information

Faculty of Science COMP-202B - Introduction to Computing I (Winter 2009) - All Sections Final Examination

Faculty of Science COMP-202B - Introduction to Computing I (Winter 2009) - All Sections Final Examination First Name: Last Name: McGill ID: Section: Faculty of Science COMP-202B - Introduction to Computing I (Winter 2009) - All Sections Final Examination Wednesday, April 29, 2009 Examiners: Mathieu Petitpas

More information

String is one of mostly used Object in Java. And this is the reason why String has unique handling in Java(String Pool). The String class represents

String is one of mostly used Object in Java. And this is the reason why String has unique handling in Java(String Pool). The String class represents String is one of mostly used Object in Java. And this is the reason why String has unique handling in Java(String Pool). The String class represents character strings. All string literals in Java programs,

More information

Chapter 11 Object-Oriented Design Exception and binary I/O can be covered after Chapter 9

Chapter 11 Object-Oriented Design Exception and binary I/O can be covered after Chapter 9 CHAPTER 8 STRINGS Chapter 6 Arrays Chapter 7 Objects and Classes Chapter 8 Strings Chapter 9 Inheritance and Polymorphism GUI can be covered after 10.2, Abstract Classes Chapter 12 GUI Basics 10.2, Abstract

More information

CHAPTER 4 MATHEMATICAL FUNCTIONS, CHARACTERS, STRINGS

CHAPTER 4 MATHEMATICAL FUNCTIONS, CHARACTERS, STRINGS CHAPTER 4 MATHEMATICAL FUNCTIONS, CHARACTERS, STRINGS ACKNOWLEDGEMENT: THESE SLIDES ARE ADAPTED FROM SLIDES PROVIDED WITH INTRODUCTION TO JAVA PROGRAMMING, LIANG (PEARSON 2014) MATHEMATICAL FUNCTIONS Java

More information

Say It Smart Plugins. Design

Say It Smart Plugins. Design Similar to the ability for a developer to create custom elements, a developer can create their own Say It Smart plugins. A developer can produce plugins that handle brand new Say It Smart types as well

More information

User Guide for Cisco Unified Call Services, Universal Edition and Unified Call Studio

User Guide for Cisco Unified Call Services, Universal Edition and Unified Call Studio User Guide for Cisco Unified Call Services, Universal Edition and Unified Call Studio Release 6.0(1) November 2007 Corporate Headquarters Cisco System s, Inc. 170 West Tasman D riv e San Jose, CA 95134-1706

More information

Slide 1 CS 170 Java Programming 1 More on Strings Duration: 00:00:47 Advance mode: Auto

Slide 1 CS 170 Java Programming 1 More on Strings Duration: 00:00:47 Advance mode: Auto CS 170 Java Programming 1 More on Strings Working with the String class Slide 1 CS 170 Java Programming 1 More on Strings Duration: 00:00:47 What are Strings in Java? Immutable sequences of 0 n characters

More information

VClarity Voice Platform

VClarity Voice Platform VClarity Voice Platform VClarity L.L.C. Voice Platform Snap-in Functional Overview White Paper Technical Pre-release Version 2.0 for VClarity Voice Platform Updated February 12, 2007 Table of Contents

More information

appreciate the difference between a char and a string understand and use the String class methods

appreciate the difference between a char and a string understand and use the String class methods 1 8 THE STRING CLASS Terry Marris 16 April 2001 8.1 OBJECTIVES By the end of this lesson the student should be able to appreciate the difference between a char and a string understand and use the String

More information

Speaker Verification in BeVocal VoiceXML

Speaker Verification in BeVocal VoiceXML Speaker Verification in BeVocal VoiceXML Version 1.5 May 2001 BeVocal, Inc. 1380 Bordeaux Drive Sunnyvale, CA 94089 2001. BeVocal, Inc. All rights reserved. 2 SPEAKER VERIFICATION IN BEVOCAL VOICEXML Table

More information

Java Programming with Eclipse

Java Programming with Eclipse One Introduction to Java 2 Usage of Java 3 Structure of Java 4 Flexibility of Java Programming 5 Using the Eclipse Software 6 Two Running Java in Eclipse 7 Introduction 8 Using Eclipse 9 Workspace Launcher

More information

Faculty of Science COMP-202A - Introduction to Computing I (Fall 2008) Final Examination

Faculty of Science COMP-202A - Introduction to Computing I (Fall 2008) Final Examination First Name: Last Name: McGill ID: Section: Faculty of Science COMP-202A - Introduction to Computing I (Fall 2008) Final Examination Thursday, December 11, 2008 Examiners: Mathieu Petitpas [Section 1] 14:00

More information

More non-primitive types Lesson 06

More non-primitive types Lesson 06 CSC110 2.0 Object Oriented Programming Ms. Gnanakanthi Makalanda Dept. of Computer Science University of Sri Jayewardenepura More non-primitive types Lesson 06 1 2 Outline 1. Two-dimensional arrays 2.

More information

Building Java Programs

Building Java Programs Building Java Programs Chapter 4 Lecture 4-2: Strings reading: 3.3, 4.3-4.4 self-check: Ch. 4 #12, 15 exercises: Ch. 4 #15, 16 videos: Ch. 3 #3 1 Objects and classes object: An entity that contains: data

More information

Lesson:9 Working with Array and String

Lesson:9 Working with Array and String Introduction to Array: Lesson:9 Working with Array and String An Array is a variable representing a collection of homogeneous type of elements. Arrays are useful to represent vector, matrix and other multi-dimensional

More information

String related classes

String related classes Java Strings String related classes Java provides three String related classes java.lang package String class: Storing and processing Strings but Strings created using the String class cannot be modified

More information

Fundamentals of Programming Session 23

Fundamentals of Programming Session 23 Fundamentals of Programming Session 23 Instructor: Reza Entezari-Maleki Email: entezari@ce.sharif.edu 1 Fall 2013 These slides have been created using Deitel s slides Sharif University of Technology Outlines

More information

Pace University. Fundamental Concepts of CS121 1

Pace University. Fundamental Concepts of CS121 1 Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction

More information

psed [-an] script [file...] psed [-an] [-e script] [-f script-file] [file...]

psed [-an] script [file...] psed [-an] [-e script] [-f script-file] [file...] NAME SYNOPSIS DESCRIPTION OPTIONS psed - a stream editor psed [-an] script [file...] psed [-an] [-e script] [-f script-file] [file...] s2p [-an] [-e script] [-f script-file] A stream editor reads the input

More information

CHAPTER 6 MOST COMMONLY USED LIBRARIES

CHAPTER 6 MOST COMMONLY USED LIBRARIES LIBRARY CHAPTER 6 - A set of ready-made software routines (class definitions) that can be reused in new programs, is called a Library. - Some commonly used java libraries are : Math Library String Library

More information

Handout 3 cs180 - Programming Fundamentals Fall 17 Page 1 of 6. Handout 3. Strings and String Class. Input/Output with JOptionPane.

Handout 3 cs180 - Programming Fundamentals Fall 17 Page 1 of 6. Handout 3. Strings and String Class. Input/Output with JOptionPane. Handout 3 cs180 - Programming Fundamentals Fall 17 Page 1 of 6 Handout 3 Strings and String Class. Input/Output with JOptionPane. Strings In Java strings are represented with a class type String. Examples:

More information

COSC 236 Section 101 Computer Science 1 -- Prof. Michael A. Soderstrand

COSC 236 Section 101 Computer Science 1 -- Prof. Michael A. Soderstrand COSC 236 Section 101 Computer Science 1 -- Prof. Michael A. Soderstrand COSC 236 Web Site You will always find the course material at: http://www.class-notes.us or http://www.class-notes.info or http://www.lecture-notes.tripod.com

More information

Topics. Class Basics and Benefits Creating Objects.NET Architecture and Base Class Libraries 3-2

Topics. Class Basics and Benefits Creating Objects.NET Architecture and Base Class Libraries 3-2 Classes & Objects Topics Class Basics and Benefits Creating Objects.NET Architecture and Base Class Libraries 3-2 Object-Oriented Programming Classes combine data and the methods (code) to manipulate the

More information

User Guide for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 8.0(1) July 4, 2011

User Guide for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 8.0(1) July 4, 2011 User Guide for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 8.0(1) July 4, 2011 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com

More information

Server-side Web Development (I3302) Semester: 1 Academic Year: 2017/2018 Credits: 4 (50 hours) Dr Antoun Yaacoub

Server-side Web Development (I3302) Semester: 1 Academic Year: 2017/2018 Credits: 4 (50 hours) Dr Antoun Yaacoub Lebanese University Faculty of Science Computer Science BS Degree Server-side Web Development (I3302) Semester: 1 Academic Year: 2017/2018 Credits: 4 (50 hours) Dr Antoun Yaacoub 2 Regular expressions

More information

Fundamentals of Programming Session 25

Fundamentals of Programming Session 25 Fundamentals of Programming Session 25 Instructor: Reza Entezari-Maleki Email: entezari@ce.sharif.edu 1 Fall 2014 These slides have been created using Deitel s slides Sharif University of Technology Outlines

More information

CSE 143 Au03 Midterm 2 Page 1 of 7

CSE 143 Au03 Midterm 2 Page 1 of 7 CSE 143 Au03 Midterm 2 Page 1 of 7 Question 1. (4 points) (a) If a precondition is not true when a method is called, two possible ways to detect and handle the situation are to use an assert statement

More information

User Guide for Cisco Unified CVP VXML Server and Cisco Unified Call Studio

User Guide for Cisco Unified CVP VXML Server and Cisco Unified Call Studio User Guide for Cisco Unified CVP VXML Server and Cisco Unified Call Studio Release 7.0(1) February 2008 Corporate Headquarters Cisco System s, Inc. 170 West Tasman D riv e San Jose, CA 95134-1706 USA http://ww

More information

Exception Handling. Chapter 11. Java By Abstraction Chapter 11. Outline What Are Exceptions?

Exception Handling. Chapter 11. Java By Abstraction Chapter 11. Outline What Are Exceptions? Chapter 11 Exception Handling Java By Abstraction 11-1 Outline 11.1 What are Exceptions? 11.1.1 Exception Handling 11.1.2 The Delegation Model 11.2 Java's Exception Constructs 11.2.1 The Basic -catch Construct

More information

CSCI 2010 Principles of Computer Science. Data and Expressions 08/09/2013 CSCI

CSCI 2010 Principles of Computer Science. Data and Expressions 08/09/2013 CSCI CSCI 2010 Principles of Computer Science Data and Expressions 08/09/2013 CSCI 2010 1 Data Types, Variables and Expressions in Java We look at the primitive data types, strings and expressions that are

More information

Java Foundations: Unit 3. Parts of a Java Program

Java Foundations: Unit 3. Parts of a Java Program Java Foundations: Unit 3 Parts of a Java Program class + name public class HelloWorld public static void main( String[] args ) System.out.println( Hello world! ); A class creates a new type, something

More information