I
I
Ivan the Terrible2015-10-09 18:22:23
Java
Ivan the Terrible, 2015-10-09 18:22:23

How to perform type conversion in JAVA?

How can one of the elements of an array be converted to a variable of type String ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Dovnar, 2015-10-09
@warriorkg

String.valueOf(my_array[0]);

my_array[1].toString();

(String)my_array[2];

There already according to the situation.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question