I am looking to write a small application that reads information from an excel file, which we will use to update an xml.
I'm pretty well-verse in .net, where I would just simply create a new class with some properties to hold all of the values I am pulling from the excel file
Public Class HouseNoteInfo
Private _MessageText As String
Public Property MessageText() As String
Get
Return _MessageText
End Get
Set(ByVal value As String)
_MessageText = value
End Set
End Property
Public Sub New(ByVal msgText As String)
_MessageText = msgText
End Sub
End Class
And then I would simply create a list of the class, which I would be able to effectively keep data ordered and would be able to pull which items I wanted
Public NoteList As New Generic.List(Of HouseNoteInfo)
...
NoteList.Add(New HouseNoteInfo(msgText))
I've been trying to find an alternative for Java, but I don't believe they have the same getter/setter method as .net so I've only found I can create a HashMap of a new class containing my own methods to get and set the values but it feels clunky to me and was just wondering if there was a more efficient way to go about this?