This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.io.*; | |
| import java.io.ByteArrayInputStream; | |
| import java.io.FileInputStream; | |
| import java.io.FileNotFoundException; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import javax.xml.stream.XMLInputFactory; | |
| import javax.xml.stream.XMLStreamConstants; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <employees> | |
| <employee id="111"> | |
| <firstName>Rakesh</firstName> | |
| <lastName>Mishra</lastName> | |
| <location>Bangalore</location> | |
| </employee> | |
| <employee id="112"> | |
| <firstName>John</firstName> | |
| <lastName>Davis</lastName> | |
| <location>Chennai</location> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.*; | |
| class AList{ | |
| public static void main(String args[]){ | |
| /* Array list extends Abstract List implements List interface. | |
| * Array list supports dynamic Arrays that can grow as needed | |
| * Array list can dynamically increase and decrease in size | |
| * It is of variable length | |
| */ | |
| //Array list declaration |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package vajja; | |
| import vajja.User; | |
| // the old namespace mentioned in the original tutorial is outdated | |
| //import org.codehaus.jackson.map.ObjectMapper; | |
| import com.fasterxml.jackson.core.JsonParseException; | |
| import com.fasterxml.jackson.databind.JsonMappingException; | |
| import com.fasterxml.jackson.databind.ObjectMapper; | |
| import com.fasterxml.jackson.databind.DeserializationFeature; | |
| import java.io.File; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name" : { | |
| "first" : "Joe" | |
| , "last" : "Sixpack" | |
| } | |
| , "gender" : "MALE" | |
| , "verified" : false | |
| , "userImage" : "Rm9vYmFyIQ==" | |
| } |