public class Property{
private String name;
public Property(){
name = "";
}
}
public class Property{
private String name;
public Property(){
name = "";
}
}
public class Property{
private String name;
public Property(){
name = "";
}
public String getName(){
return name;
}
}
public class Property{
private String name;
public Property(){
name = "";
}
public String getName(){
return name;
}
public void setName(String a_name){
if(a_name.length() == 0){
throw new IllegalArgumentException(
"Name cannot be an empty string!");
}
this.name = a_name;
}
}
public class Property{
private String name;
public Property(){
name = "";
}
public String getName(){
return name;
}
public void setName(String a_name){
if(a_name.length() == 0){
throw new IllegalArgumentException(
"Name cannot be an empty string!");
}
this.name = a_name;
}
}
public class Property{
private String name;
public Property(){
name = "";
}
public String getName(){
return name;
}
public void setName(String a_name){
if(a_name.length() == 0){
throw new IllegalArgumentException(
"Name cannot be an empty string!");
}
this.name = a_name;
}
}
public class Main{
public static void main(String[] args){
Property prop = new Property();
String name = prop.getName();
System.out.println(name);
prop.setName("test");
System.out.println(prop.getName());
}
}
public class Property{
private String name;
public Property(){
name = "";
}
public String getName(){
return name;
}
public void setName(String a_name){
if(a_name.length() == 0){
throw new IllegalArgumentException(
"Name cannot be an empty string!");
}
this.name = a_name;
}
}
public class Main{
public static void main(String[] args){
Property prop = new Property();
String name = prop.getName();
System.out.println(name);
prop.setName("test");
System.out.println(prop.getName());
}
}
public class Property{
private String name;
public Property(){
name = "";
}
public String getName(){
return name;
}
public void setName(String a_name){
if(a_name.length() == 0){
throw new IllegalArgumentException(
"Name cannot be an empty string!");
}
this.name = a_name;
}
}
public class Main{
public static void main(String[] args){
Property prop = new Property();
String name = prop.getName();
System.out.println(name);
prop.setName("test");
System.out.println(prop.getName());
}
}
public class Property{
private String name;
public Property(){
name = "";
}
public String getName(){
return name;
}
public void setName(String a_name){
if(a_name.length() == 0){
throw new IllegalArgumentException(
"Name cannot be an empty string!");
}
this.name = a_name;
}
}
public class Main{
public static void main(String[] args){
Property prop = new Property();
String name = prop.getName();
System.out.println(name);
prop.setName("test");
System.out.println(prop.getName());
}
}
public class Property{
private String name;
public Property(){
name = "";
}
public String getName(){
return name;
}
public void setName(String a_name){
if(a_name.length() == 0){
throw new IllegalArgumentException(
"Name cannot be an empty string!");
}
this.name = a_name;
}
}
public class Main{
public static void main(String[] args){
Property prop = new Property();
String name = prop.getName();
System.out.println(name);
prop.setName("test");
System.out.println(prop.getName());
}
}
public class Property{
private String name;
public Property(){
name = "";
}
public String getName(){
return name;
}
public void setName(String a_name){
if(a_name.length() == 0){
throw new IllegalArgumentException(
"Name cannot be an empty string!");
}
this.name = a_name;
}
}