This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Solution { | |
public ListNode reverseList(ListNode head) { | |
ListNode prev = null; | |
ListNode current = head; | |
while (current != null) { | |
ListNode next = current.next; | |
current.next = prev; | |
prev = current; | |
current = next; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Example01{ | |
Integer num = 20; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class StudyHaleEx01 { | |
public static void main(String[] args) { | |
StudyHale02 study = new StudyHale02(); | |
int[] arr = new int[10]; | |
// 타입 추론 | |
var typeInference01 = "greeting"; | |
var typeInference02 = arr; | |
var typeInference03 = study; | |
var typeInference04 = study.greeting; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
public class FileClone { | |
public static void main(String[] args) throws IOException { | |
String target = "korean.txt"; | |
String cloneFile = "clone.txt"; | |
// 타겟 대상 파일 읽어들여서 콘솔에 출력하기 | |
String fileread = inputWord(target, 1000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package parseJsoup; | |
import java.io.IOException; | |
import java.util.Timer; | |
import java.util.TimerTask; | |
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; | |
import org.jsoup.select.Elements; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package jsoupsample; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Timer; | |
import java.util.TimerTask; | |
import org.jsoup.Jsoup; | |
import org.jsoup.nodes.Document; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table dept( | |
deptno number(2,0), | |
dname varchar2(14), | |
loc varchar2(13), | |
constraint pk_dept primary key (deptno) | |
); | |
create table emp( | |
empno number(4,0), | |
ename varchar2(10), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.IOException; | |
import java.io.PrintWriter; | |
import javax.servlet.ServletException; | |
import javax.servlet.annotation.WebServlet; | |
import javax.servlet.http.HttpServlet; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
public class strArr2String { | |
public static void main(String[] args) { | |
String data = "Hello World"; | |
String[] temp = data.split(""); | |
String changed = ""; | |
for (int i = 0; i < temp.length; i++) { | |
changed += temp[i]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Arrays; | |
public class string2charArr { | |
public static void main(String[] args) { | |
String data = "Hello World"; | |
String[] strArr = data.split(""); | |
char[] charArr = data.toCharArray(); | |
System.out.println(Arrays.toString(strArr)); |
NewerOlder