السلام عليكم
منو يعف يحل هذا الexercise
ويوضح لنا كل مطلوب اشلون حققناه عشان نستفيد
5-Write a subclass of FilterInputStream that looks for positive integer digit characters,such as "4231",and replaces them with the textual equivalent,such as"four thousand two hundred and thirty one"
Do this in several steps:
(a) convert the input stream into PushbackInputStream.
(b)As long as the source input stream is not a digit character,return it .
©when a digit character is encountered ,read the number until the end of digit is found.
(d) Push the terminating nondigit character back into the input.
(e)Trans;ate the number into its textual equivalent,stored in a string create an InputStream to read characters from this string.
(f)For subsequent requests ,read from the string buffer input Stream until no further characters remain,
then revert to reading from the original push back input stream.
هذي التمارين بعد عقدتني
1-create anew subclass of FilterInputStream that reads values from an input stream and converts all uppercase character to lowercase .
Using BufferedReader.readline() and String tolen .
write an application that will count and display the number of lines ,words and characters in a file .[
ممكن توضيح معني السطر التاليthe name of the file should be taken from the argument list for application
4-write the class description of a new class SeqencesOutputStream,which is the output ana;og to SequenceIputStream.the constructor for this class is will take two output streams as arguments.
each write to SequenceOutputStream will thereafter be translated into a write on each of the argument streams.
الي يجاوبني او يشرحلي او يرشدني الله يجزيه خير سواء ساعدني بسؤال او بكل الاسئلة