Presentation is loading. Please wait.

Presentation is loading. Please wait.

JAVA API Strings, I/O, Formatting and Parsing

Similar presentations


Presentation on theme: "JAVA API Strings, I/O, Formatting and Parsing"— Presentation transcript:

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


Download ppt "JAVA API Strings, I/O, Formatting and Parsing"

Similar presentations


Ads by Google