Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
trh010
cs311_final_project
Commits
56962a8c
Commit
56962a8c
authored
Apr 15, 2014
by
trh010
Browse files
moved test files around
parent
3c93c62b
Changes
4
Show whitespace changes
Inline
Side-by-side
CS311_final_project/src/main/Main.java
View file @
56962a8c
...
...
@@ -8,27 +8,28 @@ public class Main {
AdjacencyList
adjList
;
public
Main
(){
public
Main
()
{
adjList
=
new
AdjacencyList
();
}
public
void
createGraph
(
String
path
){
public
void
createGraph
(
String
path
)
{
File
file
=
new
File
(
path
);
try
{
Scanner
in
=
new
Scanner
(
file
);
System
.
out
.
println
(
in
.
next
());
in
.
close
();
}
catch
(
FileNotFoundException
e
)
{
System
.
err
.
println
(
"Error in opening the file: "
+
path
+
". Please check the file path."
);
System
.
err
.
println
(
"Error in opening the file: "
+
path
+
". Please check the file path."
);
}
}
public
static
void
main
(
String
[]
args
){
public
static
void
main
(
String
[]
args
)
{
try
{
Main
main
=
new
Main
();
main
.
createGraph
(
args
[
0
]);
}
catch
(
Exception
e
)
{
System
.
err
.
println
(
"Error! - "
+
e
.
toString
());
}
}
}
CS311_final_project/src/5lw-m.dat
→
CS311_final_project/src/
test/
5lw-m.dat
View file @
56962a8c
File moved
CS311_final_project/src/5lw-s.dat
→
CS311_final_project/src/
test/
5lw-s.dat
View file @
56962a8c
File moved
CS311_final_project/src/5lw.dat
→
CS311_final_project/src/
test/
5lw.dat
View file @
56962a8c
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment