Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
p1
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
REBECCA LEONE LESLIE
p1
Commits
4fa1021e
Commit
4fa1021e
authored
9 years ago
by
Adam Blank
Browse files
Options
Downloads
Patches
Plain Diff
Fixed arguments to spellchecker
parent
11adbbae
Branches
master
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/SpellChecker.java
+3
-3
3 additions, 3 deletions
src/main/SpellChecker.java
with
3 additions
and
3 deletions
src/main/SpellChecker.java
+
3
−
3
View file @
4fa1021e
...
...
@@ -14,7 +14,7 @@ import problems.EditDistanceProblem;
public
class
SpellChecker
{
private
WordDictionary
dictionary
;
public
SpellChecker
(
String
filename
)
{
public
SpellChecker
()
{
this
.
dictionary
=
new
SetDictionary
(
"dictionary.txt"
);
}
...
...
@@ -38,7 +38,7 @@ public class SpellChecker {
public
static
void
main
(
String
[]
args
)
{
System
.
out
.
println
(
"Pre-Processing..."
);
SpellChecker
sp
=
new
SpellChecker
(
"big.txt"
);
SpellChecker
sp
=
new
SpellChecker
();
String
[]
words
=
new
String
[]{
"hlelo"
,
"actulay"
,
"amke"
};
System
.
out
.
println
(
"Starting Tests..."
);
long
start
=
System
.
currentTimeMillis
();
...
...
@@ -51,4 +51,4 @@ public class SpellChecker {
long
end
=
System
.
currentTimeMillis
();
System
.
out
.
println
(
"Took "
+
(
end
-
start
));
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment