Java programming for beginners
Open in Telegram
Learn java programming through quizzes and videos
Show moreThe country is not specifiedThe category is not specified
2 941
Subscribers
No data24 hours
No data7 days
No data30 days
Posts Archive
Any update 21 march Tcs exam anyone got batched
27 Mar 2022, 02:55
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 Aug 2023, 13:14
H welcome to the group. To learn how to crack coding exams
11 Feb 2022, 05:09
hi Team, can anyone help me in java 11 certification exam
09 Mar 2022, 10:52
Hii team in friday how many of y got I infosis reschedule mail?
08 May 2022, 02:32
Ruzzels welcome to the group. To learn how to crack coding exams
20 Jun 2022, 04:13
Jfjdj welcome to the group. To learn how to crack coding exams
22 Aug 2022, 01:42

