Skip to content
This repository was archived by the owner on Aug 6, 2024. It is now read-only.

Conversation

@yunho04
Copy link

@yunho04 yunho04 commented Apr 6, 2023

No description provided.

@yunho04
Copy link
Author

yunho04 commented Apr 6, 2023

맨 아래 있는 파일이 이번 과제 파일입니다. 다른 파일은 삭제하고 싶은데 삭제하는 방법이 뭔가요...? ㅠㅠ

@k0000k
Copy link
Member

k0000k commented Apr 11, 2023

삭제하지 않으셔도 괜찮습니다! 꼭 삭제 하고 싶으시다면 파일 선택하고 우측 상단의 빨간 휴지통 버튼 누르시면 됩니다.

package JavaStudy;
import java.util.*;

public class CarGame {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Car 의 정보를 담는 Car 클래스를 따로 만들어주세요.

System.out.println("자동차의 개수를 입력하세요");
Scanner sc = new Scanner(System.in);
number = sc.nextInt();
System.out.println(number);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

사용하지 않는 print문은 삭제해주세요.

@k0000k
Copy link
Member

k0000k commented Apr 11, 2023

코멘트 남긴 부분 수정해주세요.
(힌트)

  1. Car 클래스를 정의해주세요
  2. 그리고 Car 클래스로 만든 객체를 담을 수 있는 배열을 만들어 사용해주세요.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants