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: