Java tutorial
package com.hrs.model.dto.addResume; import java.io.Serializable; import org.apache.commons.lang3.StringUtils; public class HiddenAddResumeDTO implements Serializable { private static final long serialVersionUID = 6919277692579909430L; private String sumProject; private String sumExperience; private String sumYears; private String sumlanguage; private String sumOtherlanguage; private String sumCertificateByEnglish; private String sumCertificateByJapanese; private String sumEduBackground; private String sumHinder; private String sumVacancies; private String skillOption; private String sumLicense; private String sumSkills; public String getSumProject() { return sumProject; } public void setSumProject(String sumProject) { this.sumProject = sumProject; } public String getSumExperience() { return sumExperience; } public void setSumExperience(String sumExperience) { this.sumExperience = sumExperience; } public String getSumYears() { return sumYears; } public void setSumYears(String sumYears) { this.sumYears = sumYears; } public String getSumlanguage() { return sumlanguage; } public void setSumlanguage(String sumlanguage) { this.sumlanguage = sumlanguage; } public String getSumOtherlanguage() { return sumOtherlanguage; } public void setSumOtherlanguage(String sumOtherlanguage) { this.sumOtherlanguage = sumOtherlanguage; } public String getSumEduBackground() { return sumEduBackground; } public void setSumEduBackground(String sumEduBackground) { this.sumEduBackground = sumEduBackground; } public String getSumHinder() { return sumHinder; } public void setSumHinder(String sumHinder) { this.sumHinder = sumHinder; } public String getSumVacancies() { return sumVacancies; } public void setSumVacancies(String sumVacancies) { this.sumVacancies = sumVacancies; } public String getSkillOption() { return skillOption; } public void setSkillOption(String skillOption) { this.skillOption = skillOption; } public String getSumLicense() { return sumLicense; } public void setSumLicense(String sumLicense) { this.sumLicense = sumLicense; } public String getSumSkills() { return sumSkills; } public void setSumSkills(String sumSkills) { this.sumSkills = sumSkills; } public String getSumCertificateByEnglish() { return sumCertificateByEnglish; } public void setSumCertificateByEnglish(String sumCertificateByEnglish) { this.sumCertificateByEnglish = sumCertificateByEnglish; } public String getSumCertificateByJapanese() { return sumCertificateByJapanese; } public void setSumCertificateByJapanese(String sumCertificateByJapanese) { this.sumCertificateByJapanese = sumCertificateByJapanese; } public static void main(String args[]) { // String[] sumVacancies = ("a,b,c,,,").split(","); // for(String s:sumVacancies){ // System.out.println(s); // } System.out.println(StringUtils.isNotEmpty(null)); String a = ""; String b = ""; String cc = StringUtils.isNotEmpty("") ? "aaaa" : "BBBBBBBB"; if (StringUtils.isNotEmpty(null)) { } // System.out.println(StringUtils.trimToEmpty(" ").isEmpty());//true } }