Posts by Joao • 11 points
2 posts
-
1
votes1
answer59
viewsA: Pass String to array (Xml);
Well, whoever’s got the same problem, I got to do it this way: public void loadMap(String path) { File file = new File(getClass().getResource(path).getFile()); try { DocumentBuilder dbBuilder =…
-
0
votes1
answer59
viewsQ: Pass String to array (Xml);
I’m using this code to read a map of an xml file. private void loadMap(String mapa) { File file = new File(getClass().getResource(mapa).getFile()); try { dbBuilder =…