난이도 ¶
- 자바를 배우며, C와 겹치는 부분에서는 이미 아는 내용이 대다수였지만, 간간이 모르는 내용들도 있어서 기초를 짚고 넘어갈 수 있었던 것 같습니다. 특히 시프트 연산자 부분 작년에 들었을때는 이해를 못했었는데, 올해 들으니까 이해가 되었습니다.
새롭게 배운 내용 ¶
- 시프트 연산자
- boolean type
- 입력받기
import java.util.Scanner;
Scanner sc = new Scanner(System.in);
int num = scanner.nextInt();
느낀점/건의사항 ¶
- 질문을 할때 강사님께서 좋은 질문입니다 라고 받아주셔서 좋은 분위기에서 질문 할 수 있었던 것 같습니다.
- 또 좋았던 점은, 왜 이런 문법을 쓰는지의 인과관계를 설명해주셔서 그냥 외웠던 부분도 기초를 탄탄히 할 수 있었던 것 같습니다.
- 정기적으로 자바를 공부할 수 있는 시간이 생겨서 좋은 것 같습니다. 앞으로 수업도 기대돼요!
느낀점/건의사항 ¶
- 기존에 알고 있던 프로그래밍 언어와 다른 문법을 사용해서 생소했지만 차근차근 설명해 주셔서 빠르고 쉽게 이해할 수 있었습니다.
- 질문을 받았을 때 막히지 않고 친절하게 답변을 해 주셔서 지루하지 않고 재미있게 참여했습니다.
- 더 심화된 내용을 빨리 배워서 자바를 마스터하고 싶습니다!!!
과제(2753:윤년,8393:합) ¶
- 임지민
- 2753:윤년
- 2753:윤년
public class Main {
public static void main(String[] args) {
}
private static void CheckLeapYear(int year) {
}}
private static void CheckLeapYear(int year) {
if(year % 400 == 0)
}System.out.println("1");
else if(year % 100 != 0 && year % 4 == 0)
System.out.println("1");
elseSystem.out.println("0");
- 8393:합
public class Main {
public static void main(String[] args) {
private static void Sum(int num) {
}Scanner sc = new Scanner(System.in);
}int num = sc.nextInt();
Sum(num);
Sum(num);
private static void Sum(int num) {
int sum = 0;
for(int i = num; i > 0; i--)
}for(int i = num; i > 0; i--)
sum += i;
System.out.println(sum);- 박창훈
- 2753: 윤년
- 2753: 윤년
public static void main(String[] args) {
if((year%400)==0) {
else if(year%100!=0&&year%4==0) {
else {
sc.close();
}
}Scanner sc = new Scanner(System.in);
int year = sc.nextInt();if((year%400)==0) {
System.out.println("1");
}else if(year%100!=0&&year%4==0) {
System.out.println("1");
}else {
System.out.println("0");
}sc.close();
}
- 8393: 합
class Main {
public static void main(String[] args) {
}Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
int result=0;
for(int i=1;i<=num;i++) {
System.out.println(result);
sc.close();
}int num = sc.nextInt();
int result=0;
for(int i=1;i<=num;i++) {
result += i;
}System.out.println(result);
sc.close();