Does Java have an analog of a C++ struct
:
struct Member {
string FirstName;
string LastName;
int BirthYear;
};
I need to use my own data type.
Java definitively has no structs :) But what you describe here looks like a JavaBean kind of class.