A struct is nothing other then a class without methods and only public attributes. If you know how to do it in C# you should also be able to do it in java since these two are hardly different.