Download presentation
Presentation is loading. Please wait.
1
JAVA API Strings, I/O, Formatting and Parsing
2
Agenda Strings File Navigation and I/O Serialization Dates and Numbers
Regular expressions
3
Strings String StringBuffer StringBuilder Immutable Pooled
Important methods: charAt(), concat(), equalsIgnoreCase(), length(), replace(), substring(), toLowerCase(), toString(), toUpperCase(), trim() StringBuffer Synchronized StringBuilder Important methods: append(), delete(), insert(), reverse(), toString()
4
File Navigation and I/O
Abstract representation of file and directory pathnames Not used to read/write data FileReader, BufferedReader FileWriter, BufferedWriter, PrintWriter Console – System.console() readLine() - returns String readPassword() - returns char[]
5
Serialization FileInput/OutputStream ObjectInput/OutputStream
writeObject(Object) readObject() Serializable Ignores transient, static Extended Serialization private void writeObject(ObjectOutputStream os) private void readObject(ObjectInputStream is)
6
Dates, Numbers, Currency
java.util.Date java.util.Calendar java.text.DateFormat java.text.NumberFormat java.util.Locale
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.