본문 바로가기

반응형

전체 글

(114)
[JAVA] Ex008 BubbleSort - 정렬 public class BubbleSortMain{public static void main(String[] args) {int [] a={5,6,3,7,4,8,2,9};BubbleSort.print(a);BubbleSort bubble=new BubbleSort();int [] b=bubble.bbsortinc(a);BubbleSort.print(b);}}class BubbleSort{public int[] bbsortinc(int [] a){int n=a.length;if(n
[JAVA] Ex007 Calendar, Date 정보출력 public static void main(String[] args) {Date d1=new Date();//오늘System.out.println(d1.toString());Date d2=new Date(System.currentTimeMillis());//오늘System.out.println(d2.toString());System.out.println(d1.compareTo(d2));//d1과 d2 비교 System.out.println(d1.after(d2));// is d1 afterday?System.out.println(d1.before(d2));// is d2 beforeday?long longDays=d1.getTime();//1970.1.1~Date d3=(Date)d1.clone();d3..
[JAVA] Ex006 다중for문, if 예제 /* * 2g, 3g, 5g의 돌이 각각 10개씩 있다. * 이 돌들의 조합으로 71g을 만들려고 한다. */public class Dol2g3g5g {public static void main(String[] args) {for(int five=0;five
[JAVA] Ex005 Math method public static void main(String[] args) { System.out.println("Math.E "+Math.E); System.out.println("Math.PI "+Math.PI); System.out.println("Math.abs(-5) 절대값:"+Math.abs(-5)); System.out.println("Math.ceil(4.34) 올림:"+Math.ceil(4.34)); System.out.println("Math.round(4.34) 반올림:"+Math.round(4.5)); System.out.println("Math.floor(4.34) 버림:"+Math.floor(4.34)); System.out.println("Math.rint(4.34) 반올림:"+Ma..
TEST TEST
[jQuery] jqGrid Multiple Footer 테이블
[jQuery] jqGrid array 테이블 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 $(document).ready(function () { gridView(); }); function gridView(){ var mydata = [ {id:"1",invdate:"2007-10-01",name:"test",note:"note",amount:"200.00",tax:"10.00",total:"210.00"}, {id:"2",invdate:"2007-10-02",name:"test2",not..
[jQuery] XML 데이터 파싱 $.ajax( {url : 'xml.asp', //ajax로 접근해 데이터를 수집해 올 url을 지정 합니다.type : 'post', //method를 지정 합니다. (get / post)data : 'pNo=3&pName=k', //지정한 url으로 보낼 파라미터를 입력 합니다. (get / post 동일)dataType : 'xml', //데이터를 주고 받는 형식 을 지정 합니다. (text, xml, json)beforeSend : function() {alert( 'url 접근 전 입니다 :) ');//ajax 동작 전 수행하고 싶은 내용을 입력 합니다. (로딩 이미지 출력 등)},success : function( result ) {alert( '오류 없이 url 접근과 response 획득이..

반응형