Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Edmunds Žagars
Java_course_final
Commits
36d9a9d1
Commit
36d9a9d1
authored
Apr 04, 2018
by
edmundszagars
Browse files
-Removing variables used for test purposes
parent
2fb55ecc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/gui/MainWindow.java
src/gui/MainWindow.java
+4
-0
src/sorting_algorithms/BubbleSort.java
src/sorting_algorithms/BubbleSort.java
+2
-2
No files found.
src/gui/MainWindow.java
View file @
36d9a9d1
...
...
@@ -94,6 +94,10 @@ public class MainWindow extends Application {
BubbleSort
bs
=
new
BubbleSort
();
double
[]
ar
=
dataFromCSV
.
getDoubleArrayFromListItem
((
ArrayList
)
list
.
get
(
0
));
double
[]
resultArray
=
bs
.
bubbleSort
(
ar
);
long
tree
=
bs
.
getExecutionStart
();
long
end
=
bs
.
getExecutionEnd
();
anResult
.
setStartDataString
(
ar
);
anResult
.
setResultDataString
(
resultArray
);
anResult
.
setExecutionResultTime
(
bs
.
getExecutionTime
());
...
...
src/sorting_algorithms/BubbleSort.java
View file @
36d9a9d1
...
...
@@ -29,7 +29,7 @@ public class BubbleSort implements ExecutionTime {
array
[
k
]
=
tmp
;
}
p
rivate
long
getExecutionStart
()
{
p
ublic
long
getExecutionStart
()
{
return
executionStart
;
}
...
...
@@ -37,7 +37,7 @@ public class BubbleSort implements ExecutionTime {
executionStart
=
executionStart
;
}
p
rivate
long
getExecutionEnd
()
{
p
ublic
long
getExecutionEnd
()
{
return
executionEnd
;
}
...
...
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