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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
| package HomeWork;
public class StringUtil {
private int i, j;
private char c;
private String str;
private boolean bool;
StringUtil(){
}
void isUpperChar(char c){
this.c = c;
bool = true;
if(bool) {
if(c < 65 || c > 90) {
bool = false;
}
}
System.out.println(c + " 대문자 여부 : " + bool);
}
void isLowerChar(char c) {
}
void max(int i, int j) {
}
void min(int i, int j) {
}
void reverseString(String str) {
}
void toUpperString(String str) {
}
void toLowerString(String str) {
}
}
|
1
2
3
4
5
6
7
8
9
10
11
12
| package HomeWork;
public class StringUtilMain {
public static void main(String[] args) {
StringUtil su = new StringUtil();
}
}
|