| 일 | 월 | 화 | 수 | 목 | 금 | 토 | 
|---|---|---|---|---|---|---|
| 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 | 
													Tags
													
											
												
												- Path Alias
 - gitlab 연동
 - 유니옥션
 - 실행시간 측정
 - 초대장
 - 프레시업 #풀무원 #하루한병 #건강만들기 #풀무원 녹즙
 - GitHub 미러링
 - '티스토리 초대장/ 티스토리초대'
 - code 세팅
 - 티스토리초대
 - settings sync
 - react native #gradle
 - GitLab미러링
 - webstorm
 - visual studio code cli
 - 티스토리 초대장
 - 네이버 클라우드 플랫폼
 - Emmet
 - 음료같은녹즙
 - GitLab Mirroring
 - eslint-import-resolver-typescript
 - code .
 - code 설치
 - React Native
 - currentTimeMillis
 - 니돈내먹
 - 티스토리 초대장/ 티스토리초대
 - 프리티어
 - GitHub Mirroring
 - visual studio code
 
													Archives
													
											
												
												- Today
 
- Total
 
목록홍익대 Java (54)
방치하기
			
			
				str.substring 이용
				
	
	
               
           
               
	
		class main{ public static void main(String[] args) { String str=args[0]; int birth= Integer.parseInt("19"+str.substring(0,2)); System.out.println(birth); } }
				홍익대 Java/수업
				
				2009. 7. 15. 16:37
			
		
			
			
				스위치랑 str.charAt(숫자)
				
	
	
               
           
               
	
		class main{ public static void main(String[] args) { String str = args[0]; char ch; ch=str.charAt(0); switch(ch){ case 'a': case 'A':System.out.printf("America %c",ch); break; case 'b': case 'B':System.out.println("brazil " +ch); break; default: System.out.println("알아서 하시길");break; } }
				홍익대 Java/수업
				
				2009. 7. 15. 15:20
			
		
			
			
				parse 랑 인수 받아 오는게 신기해서 .
				
	
	
               
           
               
	
		
	
	
               
           
					
					
					
					
					
					
						
					
				class main{ public static void main(String[] args) { String num1 = args[0]; String num2 = args[1]; int sum = Integer.parseInt(num1) +Integer.parseInt(num2); System.out.println("num1 = " + num1); System.out.println("sum = " + sum); } }
				홍익대 Java/수업
				
				2009. 7. 14. 17:34