public void setState(String state) {
if(state.length() <=3)
this.state = state;
else
this.state = state.substring(0, 2);}
sameer.a.awan1
0
Newbie Poster
Slavi
94
Master Poster
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.