purplelinux의 등록된 링크

 purplelinux로 등록된 네이버 블로그 포스트 수는 21건입니다.

System.arraycopy [내부링크]

arraycopy public static void arraycopy(Object src, int srcPos, Object dest, int destPos, int length) Copies an array from the specified source array, beginning at the specified position, to the specified position of the destination array. A subsequence of array components are copied from the source array referenced by src to the destination array referenced by dest. The number of components copied is equal to the length argument. The components at positions srcPos through srcPos+length-1 in the

String.valueOf [내부링크]

valueOf public static String valueOf(int i) Returns the string representation of the int argument. The representation is exactly the one returned by the Integer.toString method of one argument. Parameters: i - an int. Returns: a string representation of the int argument. See Also: Integer.toString(int, int) 파라미터 - int 리턴값 - String public static String valueOf(int i) { return Integer.toString(i); } 예시) String makeModel() { // this.nation = "USA"; String strSeries = String.valueOf(Series.getSeries

대괄호 쉼표 빼는 정규식 [내부링크]

System.out.println(treeSet.toString().replaceAll("[\\[\\],]", ""));

Date 타입 setter 작성 [내부링크]

public void setP_date(String p_date) { SimpleDateFormat f = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); try { this.p_date = f.parse(p_date); } catch (ParseException e) { e.printStackTrace(); } }

[JSP 소스]경매 종료시간 카운트다운 JSP 소스 [내부링크]

https://www.reportshop.co.kr/essay/1607997 JSP 소스 경매 종료시간 카운트다운 JSP 소스 %@ page contentType=text/html;charset=UTF-8 language=java %!DOCTYPE htmlhtmlhead www.reportshop.co.kr https://www.reportshop.co.kr/essay/1607997 JSP 소스 경매 종료시간 카운트다운 JSP 소스 %@ page contentType=text/html;charset=UTF-8 language=java %!DOCTYPE htmlhtmlhead www.reportshop.co.kr https://www.reportshop.co.kr/essay/1607997 JSP 소스 경매 종료시간 카운트다운 JSP 소스 %@ page contentType=text/html;charset=UTF-8 language=java %!DOCTYPE htmlhtmlhead ww

ResultSet.next [내부링크]

next boolean next() throws SQLException Moves the cursor forward one row from its current position. A ResultSet cursor is initially positioned before the first row; the first call to the method next makes the first row the current row; the second call makes the second row the current row, and so on. When a call to the next method returns false, the cursor is positioned after the last row. Any invocation of a ResultSet method which requires a current row will result in a SQLException being thrown

PreparedStatement.executeUpdate [내부링크]

executeUpdate int executeUpdate() throws SQLException Executes the SQL statement in this PreparedStatement object, which must be an SQL Data Manipulation Language (DML) statement, such as INSERT, UPDATE or DELETE; or an SQL statement that returns nothing, such as a DDL statement. Returns: either (1) the row count for SQL Data Manipulation Language (DML) statements or (2) 0 for SQL statements that return nothing Throws: SQLException - if a database access error occurs; this method is called on a

String.replaceAll [내부링크]

replaceAll public String replaceAll(String regex, String replacement) Replaces each substring of this string that matches the given regular expression with the given replacement. An invocation of this method of the form str.replaceAll(regex, repl) yields exactly the same result as the expression Pattern.compile(regex).matcher(str).replaceAll(repl) Note that backslashes (\) and dollar signs ($) in the replacement string may cause the results to be different than if it were being treated as a lite

Connection.close [내부링크]

close void close() throws SQLException Releases this Connection object's database and JDBC resources immediately instead of waiting for them to be automatically released. Calling the method close on a Connection object that is already closed is a no-op. It is strongly recommended that an application explicitly commits or rolls back an active transaction prior to calling the close method. If the close method is called and there is an active transaction, the results are implementation-defined. Spe

Integer.parseInt [내부링크]

parseInt public static int parseInt(String s) throws NumberFormatException Parses the string argument as a signed decimal integer. The characters in the string must all be decimal digits, except that the first character may be an ASCII minus sign '-' ('\u002D') to indicate a negative value or an ASCII plus sign '+' ('\u002B') to indicate a positive value. The resulting integer value is returned, exactly as if the argument and the radix 10 were given as arguments to the parseInt(java.lang.String,

String.format [내부링크]

format public static String format(String format, Object... args) Returns a formatted string using the specified format string and arguments. The locale always used is the one returned by Locale.getDefault(). Parameters: format - A format string args - Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored. The number of arguments is variable and may be zero. The maximum number of arguments is limite

Math.random [내부링크]

random public static double random() Returns a double value with a positive sign, greater than or equal to 0.0 and less than 1.0. Returned values are chosen pseudorandomly with (approximately) uniform distribution from that range. When this method is first called, it creates a single new pseudorandom-number generator, exactly as if by the expression new java.util.Random() This new pseudorandom-number generator is used thereafter for all calls to this method and is used nowhere else. This method

String.length [내부링크]

length public int length() Returns the length of this string. The length is equal to the number of Unicode code units in the string. Specified by: length in interface CharSequence Returns: the length of the sequence of characters represented by this object. 문자열의 길이를 반환 한다. public int length() { return value.length >> coder(); }

String.isEmpty [내부링크]

isEmpty public boolean isEmpty() Returns true if, and only if, length() is 0. Returns: true if length() is 0, otherwise false Since: 1.6 길이가 0이면 true값, 나머지는 false값 반환. public boolean isEmpty() { return value.length == 0; } 예문) String hello = null; System.out.printf("hello=(%s)\n", hello); System.out.println("hello == null : " + (hello == null)); System.out.println("hello != null : " + (hello != null)); String hello2 = hello; System.out.println("$ hello == hello2 : " + (hello == hello2)); if(hell

Class.forName [내부링크]

forName public static Class<?> forName(String className) throws ClassNotFoundException Returns the Class object associated with the class or interface with the given string name. Invoking this method is equivalent to: Class.forName(className, true, currentLoader) where currentLoader denotes the defining class loader of the current class. For example, the following code fragment returns the runtime Class descriptor for the class named java.lang.Thread: Class t = Class.forName("java.lang.Thread")

DriverManager.getConnection [내부링크]

getConnection public static Connection getConnection(String url, String user, String password) throws SQLException Attempts to establish a connection to the given database URL. The DriverManager attempts to select an appropriate driver from the set of registered JDBC drivers. Note: If the user or password property are also specified as part of the url, it is implementation-defined as to which value will take precedence. For maximum portability, an application should only specify a property once.

Connection.prepareStatement [내부링크]

prepareStatement PreparedStatement prepareStatement(String sql) throws SQLException Creates a PreparedStatement object for sending parameterized SQL statements to the database. A SQL statement with or without IN parameters can be pre-compiled and stored in a PreparedStatement object. This object can then be used to efficiently execute this statement multiple times. Note: This method is optimized for handling parametric SQL statements that benefit from precompilation. If the driver supports preco

PreparedStatement.setInt [내부링크]

setInt void setInt(int parameterIndex, int x) throws SQLException Sets the designated parameter to the given Java int value. The driver converts this to an SQL INTEGER value when it sends it to the database. Parameters: parameterIndex - the first parameter is 1, the second is 2, ... x - the parameter value Throws: SQLException - if parameterIndex does not correspond to a parameter marker in the SQL statement; if a database access error occurs or this method is called on a closed PreparedStatemen

PreparedStatement.executeQuery [내부링크]

executeQuery ResultSet executeQuery() throws SQLException Executes the SQL query in this PreparedStatement object and returns the ResultSet object generated by the query. Returns: a ResultSet object that contains the data produced by the query; never null Throws: SQLException - if a database access error occurs; this method is called on a closed PreparedStatement or the SQL statement does not return a ResultSet object SQLTimeoutException - when the driver has determined that the timeout value th

ResultSet.getString [내부링크]

getString String getString(int columnIndex) throws SQLException Retrieves the value of the designated column in the current row of this ResultSet object as a String in the Java programming language. Parameters: columnIndex - the first column is 1, the second is 2, ... Returns: the column value; if the value is SQL NULL, the value returned is null Throws: SQLException - if the columnIndex is not valid; if a database access error occurs or this method is called on a closed result set 파라미터(컬럼index