Your Real Social Reputation

posted in: Technology For Life | 0

      Politeness is the best form of hypocrisy for the ”Facebook generation” of today. Virtually everyone seems to be one’s ‘’friend’’. A like on social media implies genuine appreciation and chats are deciphered as conversations. We really seem … Continued

Binary Search in Java ( advantageous than linear search)

posted in: Java | 0

Binary Search in Java: Binary search requires a sorted collection. The advantage of a Binary search over a linear search is used for large numbers. It can be done either recursively or iteratively. In the given code, we have allowed … Continued


posted in: Java | 0

An OutputStreamWriter is a bridge from character streams to byte streams: Characters written to it are encoded into bytes using a specified charset.
The charset that it uses may be specified by name or may be given explicitly, or the platform’s default charset may be accepted.
Each invocation of a write() method causes the encoding converter to be invoked on the given character(s).
The resulting bytes are accumulated in a buffer before being written to the underlying output stream. The size of this buffer may be specified, but by default it is large enough for most purposes.
Note: The characters passed to the write() methods are not buffered.


posted in: Java | 0

LineNumberInputStream class is an input stream filter that provides the added functionality of keeping track of the current line number.
A line is a sequence of bytes ending with a carriage return character (‘\r’), a newline character (‘\n’), or a carriage return character followed immediately by a linefeed character. In all three cases, the line terminating character(s) are returned as a single newline character.
The line number begins at 0, and is incremented by 1 when a read returns a newline character.


posted in: Java | 0

FilterWriter class is used for writing filtered character streams. class is an abstract class which itself provides default methods that pass all requests to the contained stream.

The Subclasses of FilterWriter should override some of these methods and may also provide additional methods and fields.


posted in: Java | 0

FileWriter:             FileWriter provides a best way for writing “stream of characters” or “character files”.  FileWriter accepts default character encoding and the default byte-buffer size. To specify the default values, this class inherits from the OutputStreamWriter class on a FileOutputStream. … Continued

1 2