분류 전체보기
- [android]jme3 2012.07.02
- [java]jdk7에서 추가된 기능과 예제 2012.06.27
- [여행]여수엑스포 2012.06.27
- [eclipse]java working set 2012.06.27
- 번창식육식당 2012.06.21
- 삼성전자, '2012 삼성 공공앱' 공모 2012.05.20
- jstl download 2012.01.08
- 펨토셀[Femtocell] 2011.12.28
- 음력/양력 데이터 2011.12.26
- RFP(Request For Proposal, 요구제안서) 2011.12.22
[android]jme3
[java]jdk7에서 추가된 기능과 예제
# jdk7의 새로운 기능
[ex] 제너릭의 다이아몬드연산자(<>)를 사용할 때 왼쪽,오른쪽 다 선언해야했으나
jdk7에서부터 왼쪽만 선언해도 됨.
import java.util.*;
class A{
public static void main(String args[]){
Map<String,List<Integer>> map1=new HashMap<String,List<Integer>>();
Map<String,List<Integer>> map2=new HashMap<>();
}
}
[ex] jdk6까지 switch문에서 사용할 수 있는 자료형은 byte,char,short,int,enum 만 사용가능.
jdk7에서는 String형이 추가로 사용가능.
class A{
public static void main(String args[]){
String str="Korea";
switch(str){
case "Korea" : System.out.println("한국"); break;
case "America" : System.out.println("미국"); break;
case "England" : System.out.println("영국"); break;
}
}
}
[ex] jdk7에서 finally를 사용하지 않아도 자동으로 자원을 회수하는 기능이 추가됨.
Closeable인터페이스를 구현한 모든 객체에 대해서 자동으로 자원회수기능이 있으니 참고하셈~
import java.io.*;
class A{
public static void main(String args[]){
try(B o=new B()){
o.test();
}catch(Exception e){
System.out.println("예외처리");
}
}
}
class B implements Closeable{
public void close(){
System.out.println("실행");
}
void test() throws Exception{
throw new Exception("폭탄");
}
}
[ex] jdk7에서는 숫자에 _(밑줄)을 추가할 수 있는 기능이 추가됨.
class A{
public static void main(String args[]){
int a=1000;
int b=1_000;
int c=1_000_000;
System.out.println(a+b);
System.out.println(c);
}
}
[ex] jdk7에서는 숫자앞에 0b를 선언하면 2진수로 선언됨.
class A{
public static void main(String args[]){
int a=0b1000;
int b=0b100;
System.out.println(a);
System.out.println(b);
}
}
[ex] jdk7에서 Exception처리가 향상되었다.
다중catch절을 하나로 줄일 수 있는 기능 추가됨.
class A{
public static void main(String args[]){
try{
Integer.parseInt("a");
int a=10/0;
}catch(NumberFormatException e1){
System.out.println("예외처리1");
}catch(ArithmeticException e2){
System.out.println("예외처리2");
}
try{
Integer.parseInt("a");
int a=10/0;
}catch(NumberFormatException | ArithmeticException e){
System.out.println("예외처리");
}
}
}
[여행]여수엑스포
[eclipse]java working set
'전산' 카테고리의 다른 글
윈도우8에서 일본어 입력기 Romaji 입력에서 Kana입력으로 바뀌는 문 (0) | 2014.06.24 |
---|---|
Windows 7 mscomm32.ocx 설치하기 (0) | 2014.01.15 |
무료 이미지 편집툴 GIMP (0) | 2013.08.05 |
프로세스 모델링 도구 : Bizagi (0) | 2013.07.24 |
excel VBA 암호 해제 방법 (0) | 2013.04.30 |
번창식육식당
'글' 카테고리의 다른 글
동경 여행 (0) | 2012.08.01 |
---|---|
안면도 여행 (0) | 2012.07.06 |
갯벌체험 (0) | 2012.07.05 |
2년차 자바 웹 개발자가 알아야할 지식 (0) | 2011.10.14 |
프로젝트 리더(PL)의 역할 (0) | 2011.08.04 |
삼성전자, '2012 삼성 공공앱' 공모
http://developer.samsung.com/challenge/public2012/overview.do
jstl download
펨토셀[Femtocell]
1,000조분의 1(10?¹?)을 뜻하는 펨토(Femto)와 이동 통신에서 1개 기지국이 담당하는 서비스 구역 단위를 뜻하는 셀(Cell)을 합친 이름으로 기존 이동 통신 서비스 반경보다 훨씬 작은 지역을 커버하는 시스템. DSL 모뎀처럼 생긴 초소형 기지국을 가정 내 유선 IP망에 연결해 휴대폰으로 유무선 통신을 자유롭게 사용할 수 있게 해 준다. 옥내 중계기를 통하지 않고 곧바로 기지국에서 교환기로 이동 통신 데이터를 전송하기 때문에 통신 사업자는 네트워크 구축 비용을 절감하면서 주파수 부하를 줄이고 통화 품질까지 향상시킬 수 있다. 음성 통화뿐 아니라 와이파이(Wi-Fi)처럼 초고속 인터넷을 이용할 수도 있다. 2.4GHz 대역을 사용하는 Wi-Fi는 전자레인지 등 가전과 주파수 간섭 우려가 있는 것과 달리 펨토셀은 사용 대역에 제한이 없어 남는 주파수를 활용할 수 있는 장점이 있다.
출처 : http://terms.naver.com/entry.nhn?docId=46142
음력/양력 데이터
RFP(Request For Proposal, 요구제안서)
RFP(Request For Proposal, 요구제안서) 필수조건 3가지
첫째, 요구목표를 명확히
둘째, 예상 결과와 업무를 명확히
셋째, 평가방식을 명확히