Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average


[split] User input check filter_list
Author
Message
RE: Chatbot #11
(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.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]

Reply

RE: Chatbot #12
(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.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]

Reply

RE: [split] User input check #13
(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
(This post was last modified: 10-07-2013, 09:44 PM by LordPankake.)
[Image: blackeagle_zps6ad86521.gif]

Reply







Users browsing this thread: 1 Guest(s)