블로그
-
50일차소스_10
import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; public class Connection conn=null; try { Class.forName(driverName); conn=DriverManager.getConnection(url,user,pw); } catch
blog.naver.com · 2022.03.15
-
아무렇게나 c# 정리 노트- [1]
if, int, long, return, short, sizeof, static, struct, switch, typeof, void, while C++(19개) : bool, catch , class, false, finally, namespace, new, private, protected, explicit, operator, public,this, throw,
blog.naver.com · 2021.07.18
-
[영진전문대학 2-CP-B 컴퓨터정보계열] 스레드
// 카운트다운 예제 import java.awt.Font; import javax.swing.JFrame; import javax.swing.JLabel; public class Test001 extends JFrame{ private JLabel label; class MyThread extends Thread{ // 내부 클래스(외부 클래스 안에서만 쓰임이
blog.naver.com · 2017.10.29
-
[JSP] Bootstrap JSP 게시판 만들기 - 자바 DAO 연결 Connection
; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; public class "oracle.jdbc.driver.OracleDriver"); conn = DriverManager.getConnection(dbURL, dbID, dbPassword); } catch
blog.naver.com · 2017.10.10
-
[JSP] Bootstrap JSP 게시판 만들기 - 데이터베이스 연결 확인
.*; public class DBtest { // ctrl space 자동완성기능 public static void main(String[] args) { try { //1. (ClassNotFoundException e) { System.out.println("드라이버가 없습니다."); }catch(SQLExce.......
blog.naver.com · 2017.09.08
-
How to check if date is valid in Java
import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class valid, it will throw ParseException Date date = sdf.parse(dateToValidate); System.out.println(date); } catch
blog.naver.com · 2016.03.15
-
[영진전문대 컴퓨터정보계열] 자바서버프로그래밍
.*; public class yunwooda { public static Connection makeConnection() { // TODO Auto-generated method 성공"); con = DriverManager.getConnection(url, id, password); System.out.println("데이터베이스 연결 성공"); } catch
blog.naver.com · 2015.11.24
-
[영진전문대 컴퓨터정보계열 컴퓨터프로그래밍전공] 자바서버프로그래밍
java.io.IOException; import javax.imageio.ImageIO; import javax.swing.JFrame; import javax.swing.JPanel; public class img; public qqqq() { setTitle("Image Load Test"); try { img = ImageIO.read(new File("aa.jpg")); } catch
blog.naver.com · 2015.11.24
-
[영진전문대 컴퓨터정보계열 컴퓨터프로그래밍전공] 자바서버프로그래밍
ddd; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; public class 성공"); con = DriverManager.getConnection(url, id, password); System.out.println("데이터베이스 연결 성공"); } catch
blog.naver.com · 2015.11.08
-
37번째 퍼즐 - 이상한 예외
참고로 모든 코드가 컴파일 되지는 않는다 import java.io.IOException; public class Arcane1 { public static void main(String ; } }} public class Arcane2 { public static void main(String[] args) { try { // 아무 것도 안 넣어도 된다 } catch
blog.naver.com · 2015.04.21