0
How can i create a dictionary in java
I want to create a dictionary from english to pashto please guide me
1 Réponse
+ 1
i am not expert in java but you can use HashMap For It, eg:
import java.util.HashMap;
public class Main {
public static void main(String[] args) {
HashMap<String, String> pashto = new HashMap<String, String>();
pashto.put("word in english", "word in pashto"); System.out.println(pashto.get("word in english");
}
}