Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
Liutauras Vilda
Jeanne Boyarsky
paul wheaton
Sheriffs:
Ron McLeod
Devaka Cooray
Henry Wong
Saloon Keepers:
Tim Holloway
Stephan van Hulst
Carey Brown
Tim Moores
Mikalai Zaikin
Bartenders:
Frits Walraven
Forum:
Java in General
Need help in java array
berender mavi
Ranch Hand
Posts: 33
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi all
i want to convert array contents into literals.
suppose i have an array[]={515,234,123}
i want to convert it into '515','234','123'
array length is dynamic contents may be more or less.But i want them to be enclosed in ' ' and separated by ,
Darryl Burke
Bartender
Posts: 5167
11
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Loop over the array and build a
string
(using StringBuilder) with the characters you need.
luck, db
There are no new questions, but there may be new answers.
berender mavi
Ranch Hand
Posts: 33
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
can i use that converted string into "MYSQL IN QUERY"
Darryl Burke
Bartender
Posts: 5167
11
I like...
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Why would you want to? Use a PreparedStatement.
luck, db
There are no new questions, but there may be new answers.
berender mavi
Ranch Hand
Posts: 33
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
but how i will fetch data from table on the basis of contents of
java
array
Not looking good. I think this might be the end. Wait! Is that a tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
How to convert a number into an Array
SFTP in Java
Vectors
sending pdf files to IBM MQ
How to convert byte array to string array ?
More...