Hey. Im working on an assignment at my university, and Im kinda stuck at one point. The user is supposed to put in a coordinate like 0,0 or 1,1 etc. Except that the user should put it in like this 1A, 1B, 1C etc. The array is .
So the input should be 0 to 2 and A to F. (its supposed to be different apartments in a building.
Hope you understand my qeustion. I know I have to use split or something like that, but Ive never used split so Im not sure how to.
Actually, it would be easier to give each of the coordinate a name in the start of the class. Like 0,0 would be 1A, 0,1 would be 1B etc... I guess I know one way of doing it but it would require too much code. I know there is a shorter code to do it, so Im hoping someone here would know.