17

Simple IO and Arrays and Strings Vectors

LEARNING OBJECTIVES

At the end of the chapter, you will be able to understand and write programs using

  • Simple IO statements using BufferedReader and InputStreamreader.
  • Read(), readLine() and StringTokenizer class and its methods.
  • Java's input using scanner class and output using String format().
  • Arrays and Strings handling.
  • Vectors and wrapper classes.

17.1 Introduction

In Chapters 15 and 16 you have been introduced to some simple IO statements. We continue in this chapter to introduce you to further IO programs as these are required for carrying out meaningful programming in Java. You will learn techniques to input primitive data types using BufferedReader and InputStreamReader and read() and ...

Get Object-oriented Programming Using C++ and Java now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.