13 Strings, Regular Expressions
Learning Outcomes
Create and manipulate Strings
Manipulate data using the StringBuilder class and its methods
Resources
The Java™ Tutorials
Videos
Web sites
Java - Regular Expressions tutorialspoint
Exam Topics
Handle text using String and StringBuilder classes
Oracle Academy
4 Strings, Regular Expressions, Recursion
4-1 String Processing
4-2 Use Regular Expressions
Textbook
14 Strings, Characters and Regular Expressions
Tutorial / Practice Activity
4-1 Practice
4-2 Practice
Lesson Plan
Mindfulness
Previous week review (lambdas and streams)
Resource reinforcement and clarification
Java String processing
Regex
Regex in Java
Activity
Project
Checkstyle,
Mindfulness
Read from Properties file
Java Read username, password and port from properties file roseindia
h2database
Properties file contents:
password=dbpw
Code:
Properties prop = new Properties();
prop.load(new FileInputStream("res/properties"));
PASS = prop.getProperty("password");