We can use toArray() method to convert a hashset to an array in java. Syntax: hashSet.toArray(strArray);. Example: package com.w3spoint ...
確定! 回上一頁