Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

for the specified array, find the value array of the downloaded characters

user260userNov 5 2014 — edited Nov 5 2014

welcome

I would like to ask how with such an array:

x_z01

x_z02

x_q01

x_q02

x_q03

from this table I have searched:

for the

"x_01"

algorithm chosen:

x_z01

for the

"x"

algorithm chose :

"x_z01"

for the

"Z01"

algorithm chose

"x_z01"

for the

"x_q"

algorithm chose

"x_q01"

For any character - chose any value from an array

import java.util.Scanner;

/** */

public class Array_value{

/**      * @param args the command line arguments      */

public static void main(String[] args) {

  // TODO code application logic here

  List list = new ArrayList();

    list.add("x_z01");

    list.add("x_z02");

    list.add("x_q01");

  list.add("x_q02");

  list.add("x_q03");

  System.out.println(list);

          Scanner s=new Scanner(System.in);

          String temp=s.nextLine();

          System.out.println(temp+"  ");

  }

}

whether this algorithm:

http://en.wikipedia.org/wiki/Levenshtein_distance

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 3 2014
Added on Nov 5 2014
0 comments
741 views