Professional Documents
Culture Documents
10 05 2017
10 05 2017
Topics
-Command Line Arguments
-Properties file
-String split() method
-StringTokenizer class
-Pattern Matcher
-----------------------------------------------------------------------------------
---------------------------
-----------------------------------------------------------------------------------
---------------------------
Properties file:
Question: I want to store my id and name in a properties file. then read it from my
java application, and display to the user.
-----------------------------------------------------------------------------------
---------------------------
String.split(", ");
asking comma and space
Question. I want to store some names inside a string variable, then display it
using split() method
-----------------------------------------------------------------------------------
---------------------------
StringTokenizer class:
-predefined class in java.util package
-does same work as String.split() method
Question. I want to store some names inside a string variable, then display it
using StringTokenizer class
(", ");
asking comma or space