Profile

Scrapbook photo 1
Scrapbook photo 2
Scrapbook photo 3
Scrapbook photo 4
Javin Paul
Lived in Mumbai
54,655,566 views
AboutPostsPhotosYouTube

Stream

Javin Paul

Discussion  - 
 
 
10 Code Comment Best Practices, Every Coder Should Know
Rule 1 :  Before making a comment lets made code more readable that will reduce amount of comment you see in code
Rule 2 : If you do comment, Comment WHY you are doing, not WHAT are you doing
Rule 3 : Always put comment while committing code, include JIRA number.
Rule 4 : Always write Javadoc, only if you writing a library.
Rule 5 : ..... read more http://javarevisited.blogspot.com/2011/08/code-comments-java-best-practices.html #Programming   #BestPractice  
3 comments on original post
1
Add a comment...

Javin Paul

Beginners  - 
 
 
Why using Enum as Singleton is Good Choice in Java?
Enum can be used to create Singleton classes in Java. Enum with just one instance is effectively a Singleton and probably most simplest way to declare thread-safe Singleton in Java. forget about complexity of double checked locking just use Enum as Singleton.
http://javarevisited.blogspot.com/2012/07/why-enum-singleton-are-better-in-java.html #Java   #Coding  
View original post
8
1
Vijith Menon's profile photo
Add a comment...

Javin Paul

Beginners  - 
 
 
10 Code Comment Best Practices, Every Coder Should Know
Rule 1 :  Before making a comment lets made code more readable that will reduce amount of comment you see in code
Rule 2 : If you do comment, Comment WHY you are doing, not WHAT are you doing
Rule 3 : Always put comment while committing code, include JIRA number.
Rule 4 : Always write Javadoc, only if you writing a library.
Rule 5 : ..... read more http://javarevisited.blogspot.com/2011/08/code-comments-java-best-practices.html #Programming   #BestPractice  
3 comments on original post
1
Add a comment...

Javin Paul

Core Java  - 
 
 
How to Remove Given Character From String in Java - Recursion
Write a program to remove a given character from String in Java . Your program must remove all occurrences of given character. For example, if given String is "aaaaa" and String to remove is "a" then output should be an empty String. Similarly if input Stri...
Write a program to remove a given character from String in Java. Your program must remove all occurrences of given character. For example, if given String is "aaaaa" and String to remove is "a" then output should be an empty String. Similarly if input String is "abc" and character to remove is ...
View original post
1
Add a comment...
 
 
ForEach Loop Puzzle in Java
Collection of two puzzles to test how much you know about advanced for loop in Java, introduced back in JDK 1.5. See if you can solve this puzzles based upon fundamental things about advanced for loop of Java 5. http://javarevisited.blogspot.sg/2014/04/for-each-loop-puzzle-in-java-example.html #Java   #Puzzle  
View original post
1
Add a comment...

Javin Paul

Shared publicly  - 
 
This week's coding problem is : how do you remove a given character from String in Java? You cannot use a library method to solve your problem, you have to build your logic yourself. Your code must also remove all occurrences of given character e.g. if input string is "bbbbbbbbbbb" and given character is 'b' then your program should return empty String.   
Write a program to remove a given character from String in Java. Your program must remove all occurrences of given character. For example, if given String is "aaaaa" and String to remove is "a" then output should be an empty String. Similarly if input String is "abc" and character to remove is ...
1
harikrishna tekkam's profile photo
 
package com.acn.demo.action;

public class RemoveCharFromString {

static String input = "";
public static void main(String[] args){
input = "abadbbeb34erterb";
char token = 'b';
removeChar(token);
}

private static void removeChar(char token) {
// TODO Auto-generated method stub
System.out.println(input);
for(int i=0;i<input.length();i++){
if(input.charAt(i) == token){
input = input.replace(input.charAt(i), ' ');
System.out.println("MATCH FOUND");
}
input = input.replaceAll(" ", "");
System.out.println(input);
}
}

}

// please comment
Add a comment...
In his circles
2,650 people
 
 
How to Remove Given Character From String in Java - Recursion
Write a program to remove a given character from String in Java . Your program must remove all occurrences of given character. For example, if given String is "aaaaa" and String to remove is "a" then output should be an empty String. Similarly if input Stri...
Write a program to remove a given character from String in Java. Your program must remove all occurrences of given character. For example, if given String is "aaaaa" and String to remove is "a" then output should be an empty String. Similarly if input String is "abc" and character to remove is ...
View original post
1
Add a comment...

Javin Paul

Shared publicly  - 
 
 
Why using Enum as Singleton is Good Choice in Java?
Enum can be used to create Singleton classes in Java. Enum with just one instance is effectively a Singleton and probably most simplest way to declare thread-safe Singleton in Java. forget about complexity of double checked locking just use Enum as Singleton.
http://javarevisited.blogspot.com/2012/07/why-enum-singleton-are-better-in-java.html #Java   #Coding  
View original post
1
Add a comment...
 
 
10 Code Comment Best Practices, Every Coder Should Know
Rule 1 :  Before making a comment lets made code more readable that will reduce amount of comment you see in code
Rule 2 : If you do comment, Comment WHY you are doing, not WHAT are you doing
Rule 3 : Always put comment while committing code, include JIRA number.
Rule 4 : Always write Javadoc, only if you writing a library.
Rule 5 : ..... read more http://javarevisited.blogspot.com/2011/08/code-comments-java-best-practices.html #Programming   #BestPractice  
3 comments on original post
18
Add a comment...

Javin Paul

Java Basics  - 
 
 
3 Ways to Prevent Method Overriding in Java - Private, Static and Final
Every Java programmer knows that final modifier can be used to prevent method overriding in Java because there is now way to override final methods in Java, but apart from final modifier , is there any other way to prevent a Java method to be overridden? Th...
Every Java programmer knows that final modifier can be used to prevent method overriding in Java because there is now way to override final methods in Java, but apart from final modifier, is there any other way to prevent a Java method to be overridden? This was the exact question, ...
View original post
1
Add a comment...

Javin Paul

Tips and Tricks  - 
 
 
How to Parse String to Date in Java using JodaTime Library?
Even though Java 8 has come with nice and shiny API, importance of Joda time has not reduced, mainly because most of the production systems are still running on Java 1.6 and not going to move Java 8 in hurry. If you have to deal with date and time intricacies in pre Java 8 world, only library you can trust is Joda-Time.  In this tutorial, we will learn how to parse date String to java.util.Date in Java. In fact, if you are familiar with Joda time, it would be easy to learn Java 8 date and time API because it is largely influenced by Joda.   
http://java67.blogspot.sg/2015/04/how-to-parse-string-to-date-in-java.html   #Java   #JodaTime  
View original post
1
Add a comment...

Javin Paul

Shared publicly  - 
 
 
10 Code Comment Best Practices, Every Coder Should Know
Rule 1 :  Before making a comment lets made code more readable that will reduce amount of comment you see in code
Rule 2 : If you do comment, Comment WHY you are doing, not WHAT are you doing
Rule 3 : Always put comment while committing code, include JIRA number.
Rule 4 : Always write Javadoc, only if you writing a library.
Rule 5 : ..... read more http://javarevisited.blogspot.com/2011/08/code-comments-java-best-practices.html #Programming   #BestPractice  
3 comments on original post
2
Markus Eisele's profile photo
 
That's what version control systems are for. No never comment out code. 
Add a comment...
People
In his circles
2,650 people
Work
Occupation
Software Architect
Skills
Java, Programming, Linux, SQL, Spring, FIX Prtocol, Tibco Rendezvous, Oracle, JMS, J2EE, XML, XSLT, UNIX
Basic Information
Gender
Male
Looking for
Friends, Dating, A relationship, Networking
Story
Tagline
Hi, I am Javin Paul, I have been working in Java, Unix, MySQL, FIX Tutorial and TIbco RV messaging technology .
Introduction
Hi, I am Javin Paul. I have been working in Java, FIX Tutorial and TIbco RV messaging technology from past 7 years. I am interested in writing and meeting people, reading and learning about new subjects and I have my own website Java, Unix , MySQL, TIBCO RV and FIX Protocol Tutorial   and Savingfunda: Saving and Investment Tips that takes up most of my time and is a labour of love for me. If you have a page I should visit then please let me know
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Previously
Mumbai
Contact Information
Work
Email