Java BufferedReader Example

java-thumbnail

In our previous example I have explained about the FileReader. FileReader is useful for reading the text content by characters. This is slow in performance when using for the huge files. BufferedReader is buffering the text for Reader’s. Buffering will speed up the IO operation. Instead of reading one character at a time using the […]

Java FileReader Example

java-thumbnail

Java has several File IO classes for reading and writing into the files. Each class has its own advantages. This example illustrates how to use FileReader for reading a text file. The main purpose of using the FileReader is to read the text content from a file where FileInputStream is used for reading the stream of […]

WeakReference in Java

java-thumbnail

WeakReference, SoftReference and PhantomReference are added to the Java API long back but have not effectively used by most of the programmers. The reason being the less knowledge on the concept of how these APIs work for managing the references. Basically these APIs are helping the Garbage Collector to claim the memory looking at the […]

Eclipse Tips : Refactoring History

eclipse-thumbnail

Rafactoring History is one of the rarely useful feature supported by Eclipse. If you are do lot of changes in the project, using this feature you could see the list of changes done on that project with the brief details about the changes. Note that this is not similar to the local history where local history […]

Eclipse Tips : Default Browser Settings

eclipse-thumbnail

If you are working with Eclipse, it has the internal browser for running the web applications. By default, this option is set to its own Eclipse system web browser which will be running inside the Eclipse environment itself. Typically developers run the web applications using the “Run As” command by right click on the web […]

Eclipse Tips : Rename Variable (ALT + SHIFT + R)

eclipse-thumbnail

Eclipse provides cool short cut key for renaming the variables across within a class or entire workspace. If you are not aware of this feature, you would use “find” option and replace the variable with new name. But, this will lead to a problem of not renaming all the references. You can easily rename the […]

Eclipse Tips : How To Create Custom Code Template In Eclipse

eclipse-thumbnail

One of the awesome feature in Eclipse is to create the custom code template to insert on the appropriate context. For example, there is default for loop template is exist in the Eclipse IDE, if you type for and press CTRL + SPACE, it would insert the complete for loop syntax with the condition. This […]

Eclipse Tips : Open Declarations (CTRL + O)

eclipse-thumbnail

When you are working within a class, often you would need to look up or navigate to the specific method in the same class. If you are not aware of CTRL + O short cut, then probably you would have searched the method using search dialog or scroll down manually to the method. However, if […]

Eclipse Tips : How To Add User Library In Eclipse

eclipse-thumbnail

In Eclipse environment, library means set of JAR files which is used for implementing a particular framework or version. By default, Eclipse comes with set of libraries used for the Java environments, Web applications, etc. which are known as the system / web libraries. To make things simpler, Eclipse has the facility to create own […]

Eclipse Tips : How To Add Server In Eclipse

eclipse-thumbnail

This example illustrates how to add the server instance using the server wizard in Eclipse. One of the greatest advantage of using the IDE’s like Eclipse is that developers can use the server instances inside the editor itself without leaving the Eclipse environment. Eclipse itself supports the multiple server adapters to easily integrate the server […]

Close
Please support the site
By clicking any of these buttons you help our site to get better