for the specified array, find the value array of the downloaded characters — oracle-tech

    Forum Stats

  • 3,702,023 Users
  • 2,239,548 Discussions
  • 7,835,716 Comments

Discussions

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

user260useruser260user Posts: 46
edited November 2014 in Java Desktop Applications

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

This discussion has been closed.