일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 | 31 |
Tags
- #2차원배열
- #C++ has~a
- relative path
- 토큰경제
- #자바상속#자바이즈어#is~a
- #다차원포인터
- border-box
- html plug-in
- #bubbleSort
- #1차원배열
- html code
- html5 new tag
- #android activity
- mac terminal command
- hyperledger transaction
- html video
- #C++ 연산자함수오버로딩
- #성적관리프로그램
- #JAVASCRIPT
- #CallByAddress
- docker example
- html youtube
- #3차원배열
- html object
- 하이퍼레저패브릭
- #binary
- html charset
- html id
- git flow
- html multimedia
Archives
- Today
- Total
목록#사칙연산 (1)
A sentimental robot
Object oriented style exercise
import java.util.Scanner;public class Hello2 { int num1, num2; char a; public void setNum1(int x) { num1 = x; } public void setOp(char r) { a = r; } public void setNum2(int y) { num2 = y; } public int getNum1() { return num1; } public char getOp() { return a; } public int getNum2() { return num2; } public int getRes() { int result=0; switch (a) { case '+': result = (num1 + num2); break; case '-'..
Java
2017. 12. 28. 14:07