Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cowhello
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
leinolm
Cowhello
Commits
972a4933
Commit
972a4933
authored
1 year ago
by
leinolm
Browse files
Options
Downloads
Patches
Plain Diff
design change
parent
2cdd1fab
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/cowhello/ConsoleProcess.java
+4
-4
4 additions, 4 deletions
src/cowhello/ConsoleProcess.java
with
4 additions
and
4 deletions
src/cowhello/ConsoleProcess.java
+
4
−
4
View file @
972a4933
...
...
@@ -49,7 +49,7 @@ public class ConsoleProcess extends Thread{
* @param puhuja kuka haluaa puhua
* @param asia mita haluaa puhua
*/
p
rotected
void
puhu
(
Object
puhuja
,
String
asia
)
{
p
ublic
void
puhu
(
Object
puhuja
,
String
asia
)
{
output
.
printf
(
"[%s]:%s%n"
,
puhuja
.
getClass
().
getName
(),
asia
);
output
.
flush
();
}
...
...
@@ -60,7 +60,7 @@ public class ConsoleProcess extends Thread{
* @param kysymys mita kysytaan
* @return vastaus kysymykseen
*/
p
rotected
String
kysy
(
Object
kysyja
,
String
kysymys
)
{
p
ublic
String
kysy
(
Object
kysyja
,
String
kysymys
)
{
puhu
(
kysyja
,
kysymys
);
output
.
printf
(
"[%s]>"
,
kysyja
.
getClass
().
getName
());
return
input
.
nextLine
();
...
...
@@ -73,7 +73,7 @@ public class ConsoleProcess extends Thread{
* @param cmd komennon funktionaalinen osa
* @param ohje komennon ohje
*/
p
rotected
void
lisaaKomento
(
String
nimi
,
BiConsumer
<
PrintStream
,
String
[]>
cmd
,
String
ohje
)
{
p
ublic
void
lisaaKomento
(
String
nimi
,
BiConsumer
<
PrintStream
,
String
[]>
cmd
,
String
ohje
)
{
komennot
.
add
(
nimi
,
cmd
,
ohje
);
}
...
...
@@ -81,7 +81,7 @@ public class ConsoleProcess extends Thread{
* lisaa komentoja kuoreen
* @param cmd komento, joka lisataan
*/
p
rotected
void
lisaaKomento
(
Command
cmd
)
{
p
ublic
void
lisaaKomento
(
Command
cmd
)
{
komennot
.
add
(
cmd
);
}
...
...
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