ProgramWindowJava

easy questions

Hi there,

I have 2 easy questions.

1. how do you add an integer into an array? I know how to add a text to an array (array.add("text")), but I dont know how to add an integer.

2. How to convert data type integer to datatype text.

Thanks!!!

Replay:easy questions
Arrays don't have methods, so you can't add anything to an array with array.add(). Arraylists on the other hand have methods, and you would add things to them with that method. Are you really using an arraylist instead of an array?

As for turning integers into strings, you use the Integer.toString(anInt) method.



Java

recursion/iterator problem
repainting the whole frame??
Help Wih Chessboard Problem
Format US currency
Applet:How do I get a background image.
ArrayList printout?
Get rid of that comma in my JSpinner!!!
calling other classes
Variables not visable?
return statement trouble
how to setup showConfirmDialog?
Bumper car program
how to configure showConfirmDialog
database connection to jsp page
database connection to jsp page
Help with JEditorPane
show todays date
Paint Program :: Need some help please...
Help needed for image processing (school project)
Cannot resolve symbol problem?!?!?