본문 바로가기 메뉴 바로가기

마따호쉐프의 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

마따호쉐프의 블로그

검색하기 폼
  • 분류 전체보기 (396)
    • 미분류 (6)
    • 사진 (18)
    • 졸업작품 (11)
    • 공부 (161)
      • uncategorized (40)
      • tdd (7)
      • refactoring (6)
      • android (5)
      • pythun (7)
      • Java, JSP (25)
      • Linux :: server (12)
      • DBMS, SQL (7)
      • maven :: build automation t.. (8)
      • project version management (9)
      • ORM, JPA, Hibernate (9)
      • Spring :: Web Framework (16)
      • 독서 (10)
    • java,web study (197)
      • Contents (7)
      • 1주차 (7월 1일~7일) (9)
      • 2주차 (7월 8일~14일) (29)
      • 3주차 (7월 15일 ~21일) (62)
      • 4주차 (7월 22일~28일) (16)
      • 5주차 (7월 29일~8월 4일) (55)
      • 6주차 (8월 5일~8월 11일) (5)
      • 7주차 (8월 12일~8월 18일) (8)
      • 8주차 이후 (5)
  • 방명록

java,web study/4주차 (7월 22일~28일) (16)
PreparedStatement를 이용한 CRUD Test

import java.sql.Connection;import java.sql.DriverManager;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.sql.SQLException; public class PreparedStmt {/** * PreparedStatement 테스트 */Connection con; static {try {Class.forName("oracle.jdbc.driver.OracleDriver");} catch (ClassNotFoundException cne) {cne.printStackTrace();}} public void connect() {try {con = DriverManager.getCo..

java,web study/4주차 (7월 22일~28일) 2013. 7. 26. 11:34
UDP test

import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; public class UDPClient { public static void main(String[] args) { // TODO Auto-generated method stub BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); System.out.println("보낼 자료 입력 : "); St..

java,web study/4주차 (7월 22일~28일) 2013. 7. 24. 20:21
TCP test

import java.io.IOException;import java.io.PrintWriter;import java.net.InetAddress;import java.net.Socket; public class TCPClient { public static void main(String[] args) {// TODO Auto-generated method stub InetAddress ia = null;Socket socket = null;PrintWriter out = null;try {ia = InetAddress.getByName("127.0.0.1");socket = new Socket(ia, 5555);out = new PrintWriter(socket.getOutputStream(), tru..

java,web study/4주차 (7월 22일~28일) 2013. 7. 24. 20:20
WebSocket

import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.IOException;import java.io.InputStreamReader;import java.io.OutputStreamWriter;import java.io.PrintWriter;import java.net.InetAddress;import java.net.Socket; public class WebSocket { public static void main(String[] args) {// TODO Auto-generated method stub InetAddress ia = null; // 주소 참조 변수Socket sock = null; // 소켓 참조변수P..

java,web study/4주차 (7월 22일~28일) 2013. 7. 24. 20:19
IPDisplay

import java.net.InetAddress;import java.net.UnknownHostException; public class IPDisplay { public static void main(String[] args) {// TODO Auto-generated method stub InetAddress ia = null;InetAddress[] ia2 = null; try {ia = InetAddress.getByName("www.daum.net");//URL로 접근System.out.println("server HostAddress : " + ia.getHostAddress());//호스트주소 출력System.out.println("server HostName : " + ia.getHos..

java,web study/4주차 (7월 22일~28일) 2013. 7. 24. 20:18
ObjectSerialize

import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;import java.io.ObjectInputStream;import java.io.ObjectOutputStream;import java.io.Serializable; public class ObjectSerialize { public static void main(String[] args) {// TODO Auto-generated method stubObjectInputStream ois = null;ObjectOutputStream oos = null;FileInputStream fis = null;FileOutputStream fos ..

java,web study/4주차 (7월 22일~28일) 2013. 7. 22. 22:07
FileBackup

import java.awt.FlowLayout;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.File;import java.io.FileReader;import java.io.FileWriter; import javax.swing.JButton;import javax.swing.JFileChooser;import javax.swing.JFrame;import javax.swing.JOptionPane; public class FileBackup extends JFrame implements ..

java,web study/4주차 (7월 22일~28일) 2013. 7. 22. 22:07
FileCopy

import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.FileReader;import java.io.FileWriter; public class FileCopy { public static void main(String[] args) {// TODO Auto-generated method stub String str = null;try {BufferedReader reader = new BufferedReader(new FileReader("d:\\test.txt"));//기존의 텍스트 문서 읽음BufferedWriter writer = new BufferedWriter(new FileWriter("d:\\copy.txt")..

java,web study/4주차 (7월 22일~28일) 2013. 7. 22. 22:07
이전 1 2 다음
이전 다음
공지사항
  • 파비콘이 추가 되었습니다.
최근에 올라온 글
  • 오사카/나라
  • 마쓰야마
  • 일본 여행기
  • 여러분은 이미 피곤합니다
최근에 달린 댓글
  • 감사합니다
  • Thymeleaf 관련 글 보러왔다⋯
  • 초대 기능은 넣지 않았던 걸⋯
  • 댓글을 이제 봤네요.. 그런⋯
Total
215,890
Today
9
Yesterday
23
링크
TAG
  • 이론
  • 졸업작품
  • 정렬
  • 자바스크립트
  • 청주
  • 오라클
  • JQuery
  • 자바
  • CSS
  • db
  • 메모장
  • 데이터베이스
  • jsp
  • 안드로이드
  • 충북대
  • 도전과제
  • 배열
  • 게임
  • 프로젝트
  • HTML
  • 잡담
  • SQL
  • 파이썬
  • 클래스
  • 알고리즘
  • 소켓
  • SVN
  • 아두이노
  • ERP
  • 정보
more
«   2022/08   »
일 월 화 수 목 금 토
  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      
글 보관함
  • 2019/06 (3)
  • 2019/01 (1)
  • 2018/12 (1)
  • 2016/09 (1)
  • 2016/08 (1)

Blog is powered by Tistory / Designed by Tistory