Java programming for beginners
前往频道在 Telegram
Learn java programming through quizzes and videos
显示更多未指定国家未指定类别
2 941
订阅者
无数据24 小时
无数据7 天
无数据30 天
帖子存档
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String A=sc.next();
String B=sc.next();
int length = A.length();
if (B.length()<length) {
length=B.length();
}
if(comparision (strtoint (A), strtoint (B), length)) {
System.out.println("Small ");
} else { System.out.println("Big");
}
}
public static String[] strtoint (String strl) {
String strli[] = new String[str1.length()]; String abcd="abcdefghijklmnopqrstuvwxyz";
String[] pos = new String [abcd.length()];
for (int i=0;i<abcd.length();i++) {
pos[i]="" abcd.charAt(i)
}
for (int i=0;i<str1.length();i++) {
for (int j=0;j<pos.length;j++)
{
if((""+str1.charAt(i))
.equalsIgnoreCase (pos[j])) {
strli[i]= String.
valueOf(j);
}
}
}
return strli;
}
public static boolean comparision
(String[] A, String[] B, int length) {
boolean first = true;
for (int i=0;i<length; i++) { if (Integer.parseInt(A[i])<Integer.parseInt(B[i])) {
first = true; continue;
} else {
first = false;
break;
}
}
return first;
}
}
16 8月 2023, 13:14
H welcome to the group. To learn how to crack coding exams
11 2月 2022, 05:09
hi Team, can anyone help me in java 11 certification exam
09 3月 2022, 10:52
Hii team in friday how many of y got I infosis reschedule mail?
08 5月 2022, 02:32
Ruzzels welcome to the group. To learn how to crack coding exams
20 6月 2022, 04:13
Jfjdj welcome to the group. To learn how to crack coding exams
22 8月 2022, 01:42

