This repository has been archived by the owner on Aug 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
homework2 #82
Open
DCHC7
wants to merge
9
commits into
SoongSilComputingClub:DCHC7
Choose a base branch
from
DCHC7:main
base: DCHC7
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
homework2 #82
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0125aa3
Create homework 2
DCHC7 564bf12
Delete homework 2
DCHC7 2debbd4
Delete ListToArray.java
DCHC7 bb027c6
Delete IDNumber.java
DCHC7 a76a498
Delete Average.java
DCHC7 533a61a
Delete Change.java
DCHC7 4799312
Add files via upload
DCHC7 383b0e6
Delete test1.txt
DCHC7 c72e285
Delete ToSet.java
DCHC7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import java.util.Scanner; | ||
|
||
public class Entry { | ||
int speed; | ||
String name = ""; | ||
|
||
public static void main(String args[]) { | ||
int entryNumber; | ||
Scanner scanner = new Scanner(System.in); | ||
System.out.println("참가자 수를 입력하세요."); | ||
entryNumber = scanner.nextInt(); | ||
Entry[] entryArray = new Entry[entryNumber]; | ||
for (int a = 0; a < entryNumber; a++) { | ||
entryArray[a] = new Entry(); | ||
System.out.println(a + 1 + "번째 참가자의 speed를 입력하세요."); | ||
entryArray[a].speed = scanner.nextInt(); | ||
System.out.println(a + 1 + "번째 참가자의 이름를 입력하세요."); | ||
entryArray[a].name = scanner.next(); | ||
} | ||
System.out.println("---------참가자 소개----------"); | ||
for (int a = 0; a < entryNumber; a++) { | ||
System.out.println("speed : " + entryArray[a].speed + " name : " + entryArray[a].name); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Car 클래스와 main 함수가 속한 클래스를 분리해주세요.