![]() |
Pass integers to an array?
I'm trying to do something similar to passing a string to an array, as in the following piece of code:
:
String encryptMe = "Test"This is my attempt to do the same thing, only I'm trying to add numeric values to the array rather than characters. The errors I've got are "int cannot be dereferenced" and also "incompatiable types". I've read that ints can't be used in this case...though I've tried the same thing with long data types and got the same results. :
Any suggestions on how to achieve this the right way? Thanks |
Re: Pass integers to an array?
You seem to be approaching this problem from the perspective of a C programmer. Remember that arrays are actually objects in Java.
:
String encryptMe = "Test"; |
Re: Pass integers to an array?
That's exactly what I was trying to do, thanks a lot titaniumdecoy!
|
| All times are GMT -5. The time now is 4:06 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC