Sinisterly
[split] User input check - Printable Version

+- Sinisterly (https://sinister.li)
+-- Forum: Coding (https://sinister.li/Forum-Coding)
+--- Forum: Java, JVM, & JRE (https://sinister.li/Forum-Java-JVM-JRE)
+--- Thread: [split] User input check (/Thread-split-User-input-check)

Pages: 1 2


RE: Chatbot - Deque - 10-07-2013

(10-06-2013, 10:18 PM)blackeagle Wrote: @Deque so if i understood right i can use for and is letter to check if every character is a letter !!

Yes.
Code:
Character.isLetter(myChar)
And you might need
Code:
myString.toCharArray()
To get an array of characters to iterate through

Edit: I made a new thread with your question. It doesn't really have to do with chatbots.


RE: Chatbot - Deque - 10-07-2013

(10-06-2013, 10:18 PM)blackeagle Wrote: @Deque so if i understood right i can use for and is letter to check if every character is a letter !!

Yes.
Code:
Character.isLetter(myChar)
And you might need
Code:
myString.toCharArray()
To get an array of characters to iterate through

Edit: I made a new thread with your question. It doesn't really have to do with chatbots.


RE: [split] User input check - blackeagle - 10-07-2013

(10-07-2013, 07:42 AM)Deque Wrote:
(10-06-2013, 10:18 PM)blackeagle Wrote: @Deque so if i understood right i can use for and is letter to check if every character is a letter !!

Yes.
Code:
Character.isLetter(myChar)
And you might need
Code:
myString.toCharArray()
To get an array of characters to iterate through

Edit: I made a new thread with your question. It doesn't really have to do with chatbots.

ok thanks for the help and thanx for splitting the thread Smile