123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|717|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> C/C++/C#/Other -> variables in Java...

Sat, 29 Jun 2013, 14:10
Orion Pax
Does java have anything similar to Blitz's TYPE?

As in this... https://www.blitzbasic.com/b3ddocs/command.php?name=Type&ref=2d_cat

I know of hashmaps, but they are bout point less, you can only store 1 item per iteration. I know you can store a list or a set to it, but its just not the same.
Sat, 29 Jun 2013, 15:06
Orion Pax
nvm, im just being retarded. For got that I could create my own type list. Just create a class with all the variables I want to save, and then implement the methods for modifying those variables.

Then I create a new instance of each while saving the instance itself to variable to regain access to the info.
Sat, 29 Jun 2013, 16:37
Jayenkai
Sounds complex!
Sat, 29 Jun 2013, 17:37
steve_ancell
I've not touched Java for quite a while now but I do remember something similar to BlitzBasic User Defined Types, known as a linkedlist.

Scroll down to see an example. I know that it's dealing with strings in the example but you can put any type of object into a linkedlist as far as I remember.


www.tutorialspoint.com/java/java_linkedlist_class.htm