Skip to content

Commit 233cef2

Browse files
authored
final project!!!
1 parent 5f9fe62 commit 233cef2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Ex1.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static void main(String[] args) throws FileNotFoundException {
4949
}
5050

5151
if(!Parser.isQueryAlreadyExists(net,queryVarName,queryAndEvidencesWithOutcome).equals("-1")) {
52-
final_answer += Parser.isQueryAlreadyExists(net, queryVarName, queryAndEvidencesWithOutcome)+",0,0";
52+
final_answer += Parser.isQueryAlreadyExists(net, queryVarName, queryAndEvidencesWithOutcome)+",0,0\n";
5353
continue;
5454
}
5555
String functionNumber = line.substring(queryLen - 1);

Xml_reader.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
public class Xml_reader{
1515
public static void readXml(String fileName,Network bayesianNetwork ){
1616
try {
17-
File xmlDoc = new File("src/"+fileName);
17+
File xmlDoc = new File(fileName);
1818
DocumentBuilderFactory fact = DocumentBuilderFactory.newInstance();
1919
DocumentBuilder builder = fact.newDocumentBuilder();
2020
Document doc = builder.parse(xmlDoc);

0 commit comments

Comments
 (0)