public class VariavleTypes{
public static void main(String[] args){
//1. 논리형(논리형상수)
boolean b1,b2;
b1 = true;
b2 = false;
System.out.println("b1="+b1);
System.out.println("b2="+b2);
//2. 문자형
char munja1,munja2,munja3,munja4;
munja1='A';
munja2='B';
munja3='김';
munja4=44571;
int munja5 = '김'; // < ㅡㅡ?? 숫자를 보여주기위해 int??
System.out.println("munja1="+munja1);
System.out.println("munja2="+munja2);
System.out.println("munja3="+munja3);
System.out.println("munja4="+munja4);
System.out.println("munja5="+munja5);
//3.숫자
// 3-1.정수형
byte b=100;
short s=200;
int i1;
i1 = 1231241241;
long l1 = 2342534243L;
System.out.println("i1="+l1);
// 3-2.실수형
어제 수업시간에 한건대요 ㅎㅎㅎ
빨간색으로 칠한 부분으에 인트형은 숫자로 나타낸다고 선언하는거라고 들었는대
실행해보니 숫자로 나왓어요 그럼 그 숫자뜻은 김이란 글자가 그 숫자가
글자테이블에 저장되어 있는 순번이란 뜻인가요 ? ㅎㅎ
2013년 2월 19일 화요일
피드 구독하기:
댓글 (Atom)
UPBIT is a South Korean company, and people died of suicide cause of coin investment.
UPBIT is a South Korean company, and people died of suicide cause of coin. The company helps the people who control the market price manipu...
-
[펌] [UNIX/LINUX 명령어] apropos linux 2005/06/28 22:05 수정 삭제 http://blog.naver.com/wiggyz/80014482910 Mr.You의 블로그 | ?? http:...
-
SELinux 불린 값을 이용해서 SELinux.getBooleanValue("xxxx") SELinux.setBooleanValue("xxxx", yyyy); Policy 에도 if 문을 줄...
-
안드로이드 SDK manager를 쓰다보면 XOOM 때문에 업그레이드가 안된다. 먼 계정을 넣으라고 한다. 안깔면 된다. 깔고 싶으면 에러 메시지에 뜨는 사이트 들어가서 회원 가입하면 그만이다. 간단하다. 들어가서 이메일 주소 넣으면 자기...
아스키 코드 유니코드 로 검색해바바바. 처남이 말한게 정확한 뜻이라네~
답글삭제익명 님의 댓글...아스키 코드 유니코드 로 검색해바바바. 처남이 말한게 정확한 뜻이라네~2013년 2월 19일 오전 10:01
답글삭제오옹 넹 쉬는 시간에 보고 잇어요 ㅎ
답글삭제고생이 많네 피곤하면 집으로 오게나
삭제