This file contains hidden or 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 joe; | |
import java.util.*; | |
import java.lang.*; | |
import java.io.*; | |
class Check{ |
This file contains hidden or 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 joe; | |
import java.util.*; | |
public class HW3_20101062_1 { | |
public static void main(String[] args){ | |
// 1~100 사이의 임의의 값을 얻어서 answer 에 저장한다. | |
int cnt = 0, input = 0; |
This file contains hidden or 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 joe; | |
import java.util.*; | |
public class P8_20101062_1 { | |
public static void main(String[] args){ | |
Random r = new Random(); |
This file contains hidden or 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 joe; | |
import java.lang.*; | |
import java.util.*; | |
class Connection { | |
private String departure; | |
private String arrival; |
This file contains hidden or 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 joe; | |
import java.lang.*; | |
import java.util.*; | |
import java.io.*; | |
public class HW3_PRAC { | |
public static int count(String src, String target){ | |
char temp1, temp2; |
This file contains hidden or 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 joe; | |
import java.lang.*; | |
import java.util.*; | |
public class E1_20101062 { | |
public static void main(String[] args){ | |
String[] color = {"red", "green", "blue", "white", "black", "yellow", "pink", "grey"}; | |
Queue myQue = new LinkedList(); | |
Stack myStack = new Stack(); |
This file contains hidden or 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 joe; | |
public class E2_20101062 { | |
public static void main(String[] args){ | |
int N=8, M=5; | |
int[][] map = {{1,0,1,1,0}, | |
{0,0,1,0,0}, | |
{1,0,0,0,1}, |
This file contains hidden or 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.*; | |
import java.lang.*; | |
class Main { | |
public static String reverseString(String s) { | |
return ( new StringBuffer(s) ).reverse().toString(); | |
} | |
public static void main(String[] args) { |
This file contains hidden or 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.*; | |
import java.text.*; | |
class Main { | |
public static double avgCnt(int[] list, int cnt){ | |
double sum = 0; | |
for(int i = 0 ; i < cnt ; i++){ | |
sum += (double)list[i]; | |
} |
This file contains hidden or 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.*; | |
import java.io.*; | |
class Main { | |
public static int checkCompleteNum(int num){ | |
// 숫자가 완전제곱수인지를 체크하는 메서드 작성. | |
for(int i = 0 ; i < num ; i++){ | |
if ( num == i*i ){ |
OlderNewer