[Solved] Android code without casting

Because if you want to assign a supertype to a specific subtype variable, you need to downcast it to the actual type. Much of the Android framework is from an era before Java generics was available. Is there some better way to approach this? If you only need the View from a findViewById() return, make … Read more

[Solved] Cannot Implicitly Convert int to int[] [closed]

This is because you are trying to assign arrays instead of assigning their members: idArray = Int32.Parse(words[0]); should be idArray[i] = Int32.Parse(words[0]); and so on. Better yet, create EmployeeData class that has individual fields for id, name, dept, and so on, and use it in place of parallel arrays: class EmployeeData { public int Id … Read more