Hi sorry about asking so many questions.....and yes i have been searching on the internet, but anyways i am getting to start checking the array words with its chars and whatnot, but i dont know if will work i am confused where to put the array of words i have and in what method and just wondering if my code will eventually even work? any help will be helpfull critique as much as you want thank you
Futbol10 0
Newbie Poster
Recommended Answers
Jump to PostHi there, just curious, why do you want to use a char array and not a String object? Possibly using a char array would save memory or be faster, but if you used strings, then there are methods that allow you to easily search the string for any substring. In …
Jump to PostAnd please include the code in post with [code] [/code] tags. Many people, myself included, do not want to mess with attachments to glance at your code.
Jump to PostYou don't need to declare char arrays for every value in the word list. You have a single word chosen randomly from that list and you only need to worry about the characters in that word
char[] characters = randomString.toCharArray();
or you can dispense with the array …
All 11 Replies
PoovenM 30
Junior Poster
Ezzaral 2,714
Posting Sage Team Colleague Featured Poster
Futbol10 0
Newbie Poster
warrior16 0
Newbie Poster
Futbol10 0
Newbie Poster
warrior16 0
Newbie Poster
Alex Edwards 321
Posting Shark
Ezzaral 2,714
Posting Sage Team Colleague Featured Poster
majestic0110
commented:
A relentless helper!! +3
VernonDozier 2,218
Posting Expert Featured Poster
javaAddict 900
Nearly a Senior Poster Team Colleague Featured Poster
Futbol10 0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.