subsequent input inputting integers to read numbersyou make string object as shown before and convert it to the type you want using conversion method here' methodgetint()that converts input into type int and returns itpublic int getint(throws ioexception string getstring()return integer parseint( )the parseint(method of class integer converts the string to type int similar routineparselong()can be used to convert type long for simplicitywe don' show any error-checking in the input routines in the example programs the user must type appropriate input or an exception will occur with the code shown here the exception will cause the program to terminate in serious program you should analyze the input string before attempting to convert itand also catch any exceptions and process them appropriately inputting floating-point numbers types float and double can be handled in somewhat the same way as integersbut the conversion process is more complex here' how you read number of type doublepublic int getdouble(throws ioexception string getstring()double adub double valueof( )return adub doublevalue()the string is first converted to an object of type double (uppercase )which is "wrapperclass for type double method of double called doublevalue(then converts the object to type double for type floatthere' an equivalent float classwhich has equivalent valueof(and floatvalue(methods java library data structures the java java util package contains data structuressuch as vector (an extensible array)stackdictionaryand hashtable in this book we'll largely ignore these built-in classes we're interested in teaching fundamentalsnot in the details of particular data-structure implementation howeversuch class librarieswhether those that come with java or others available from third-party developerscan offer rich source of versatiledebugged storage classes this book should equip you with the knowledge you'll need to know what sort of data structure you need and the fundamentals of how it works then you can decide whether you should write your own classes or use pre-written library classes if you use class libraryyou'll know which classes you need and whether particular implementation works in your