// "Apply conversion '.toArray(new java.lang.String[0])'" "true-preview"

import java.util.*;
class Assign {
  String[] foo() {
    Set<String> set = Collections.singleton("s");
    String[] arr;
    arr = set.toArray(new String[0]);
    return arr;
  }
}