Commit 583a7983 authored by DANIEL DIAZ SANCHEZ's avatar DANIEL DIAZ SANCHEZ
Browse files

Update README.md

parent b7039b66
......@@ -314,6 +314,27 @@ public class TestJSON {
}
```
Crea la clase Employee.java:
```java
package cdistRest;
public class Employee {
public String firstName;
public String lastName;
public Employee(String firstName, String lastName) {
super();
this.firstName = firstName;
this.lastName = lastName;
}
public String toString() {
return "name : " + firstName + " surname : " + lastName;
}
}
```
Si trabajas con Java 11, deberás cambiar el fichero `module-info.java` para que funcione:
```java
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment