How to define void variable

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Why I can't define a void variable ,and how I do that.
I waht to define an array[] but I mallock it severals of times and each time with deferent type : byte and word and Duble word. how can I do that?

void [] array; got error
 
Why I can't define a void variable ,and how I do that.
I waht to define an array[] but I mallock it severals of times and
each time with deferent type : byte and word and Duble word. how can I
do that?

void [] array; got error

Use "Object".

Object[] a = new Object[3];
a[0] = "Hello world";
a[1] = 10;
a[2] = 3.14;
 
Back
Top