O'Reilly logo

Object-oriented Programming Using C++ and Java by Anand Vasappanavara, Gautam Vasappanavara, Ramesh Vasappanavara

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required