Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
distributed-computing-assignements
2-restAPIs-1-develop-rest-api
Commits
583a7983
Commit
583a7983
authored
Oct 20, 2020
by
DANIEL DIAZ SANCHEZ
Browse files
Update README.md
parent
b7039b66
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
583a7983
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment