Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
assignment 04
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nathan.smyth
assignment 04
Commits
8ed95ff7
Commit
8ed95ff7
authored
Jan 07, 2019
by
Invate
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first
parent
c899adb3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
18 deletions
+34
-18
AssessmentPartFour.java
src/AssessmentPartFour.java
+34
-18
No files found.
src/AssessmentPartFour.java
View file @
8ed95ff7
import
java.io.BufferedReader
;
import
java.io.File
;
import
java.io.FileNotFoundException
;
import
java.io.FileReader
;
import
java.io.IOException
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
AssessmentPartFour
{
List
<
String
>
morseCode
=
new
ArrayList
<
String
>();
List
<
String
>
morseCode
=
new
ArrayList
<
String
>();
public
int
loadMorseFromFile
(
String
filename
)
public
int
loadMorseFromFile
(
String
filename
)
{
try
(
BufferedReader
br
=
new
BufferedReader
(
new
FileReader
(
filename
)))
{
return
0
;
while
(
br
.
ready
())
{
morseCode
.
add
(
br
.
readLine
());
}
public
String
translateMorse
()
}
catch
(
FileNotFoundException
e
)
{
return
""
;
}
catch
(
IOException
e
)
{
}
int
number
=
morseCode
.
size
();
return
number
;
}
public
String
translateMorse
()
{
return
""
;
}
...
...
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