2016-09-19 06:37:04

Hi,

I have been working on this for quite some time now, and I'm devilishly stuck for no apparent reason. I am trying too put together a method that will, be given two arguments: one will be a correct string, and another will be a string that a user guesses. For example, if the computer churns out appel and the user enters papel, there are two incorrectly placed characters. But getting this idea down to code is proving to be a challenge.

2016-09-19 07:33:32

I haven't played much with java, but you could try counting the number and type of characters in the correct string and storing them for comparisons. When the user inputs a string, do a full string match check, if it fails count the type and number of characters in the users string and compare them to the correct strings data, you could even go on a character by character basis to indicate which ones don't match.

Here's some java links that may help: [String Matches][Char Count]

-BrushTone v1.3.3: Accessible Paint Tool
-AudiMesh3D v1.0.0: Accessible 3D Model Viewer