fork download
  1. import java.util.HashMap;
  2.  
  3. class test{
  4.  
  5. public static void main (String args[]){
  6. String[] a = {"01","02","03","04","05","06"};
  7. String[] b = {"a","b","c","d","e","f"};
  8. HashMap y = new HashMap();
  9.  
  10. if (a.length == b.length){
  11. for(int i = 0; i < a.length; i++) y.put(b[i], a[i]);
  12. }
  13.  
  14. }
  15.  
  16. }
Success #stdin #stdout 0.08s 212416KB
stdin
Standard input is empty
stdout
Standard output is empty