Refresh Your Java - Before Java Interview
We are Agile, believe in less Documentation - Only Quick notes (Java Interview Questions) of Java/J2ee Read more....
This method converts the Array to a Delimited
separates String
that could be Comma or some other
delimitor.
static public String
getDelimitedString(String[] array, String delim) {
String str = "";
if (array != null) {
for (int i = 0; i < array.length; i++) {
if (!array[i].trim().equals("")
&&
!array[i].trim().equals("-1")) {
str += array[i];
str += delim;
}
}
// stripping the last comma if one exists.
if(str.trim().endsWith(",")){
str = str.substring(0, str.length()-1);
}
}
return str;
}
This Portal is intended to put all Java/J2ee related topics at one single place for quick referance, not only Technical , but also the Project Management Related thing such as Development Process methodoogies build process, unit testing etc.,
This Portal has More than 500 Java Interview Questions (also could be Considered as Quick Notes) very neatly separated topic by topic with simple diagrams which makes you easily understandable. Importantly these are from our Realtime expericance.