/*Print UppperCase & LowerCase Letter Separatly from user provided String*/ import java.util.*;
public class Main
{
public static void main(String[] args)
{
int count = 0;
Scanner scn = new Scanner(System.in);
System.out.print("Enter a string: ");
String str = scn.nextLine();
System.out.println("Upper case characters: ");
for (int i = 0; i< str.length(); i++ )
{
if (Character.isUpperCase(str.charAt(i)))
{
System.out.print(str.charAt(i)+", ");
}
}
System.out.println("\nLower case characters: ");
for (int i = 0; i< str.length(); i++ )
{
if (Character.isLowerCase(str.charAt(i)))
{
System.out.print(str.charAt(i)+", ");
}
}
}
for More Join:https://t.me/codinganywhere
public class Main
{
public static void main(String[] args)
{
int count = 0;
Scanner scn = new Scanner(System.in);
System.out.print("Enter a string: ");
String str = scn.nextLine();
System.out.println("Upper case characters: ");
for (int i = 0; i< str.length(); i++ )
{
if (Character.isUpperCase(str.charAt(i)))
{
System.out.print(str.charAt(i)+", ");
}
}
System.out.println("\nLower case characters: ");
for (int i = 0; i< str.length(); i++ )
{
if (Character.isLowerCase(str.charAt(i)))
{
System.out.print(str.charAt(i)+", ");
}
}
}
for More Join:https://t.me/codinganywhere
YouTube
Swap two Numbers using java | Part 1 #java #Swap #numbers #Swapping2numbers #coding
/******************************************************************************
Swap two Number given by user | 4methods
*******************************************************************************/
import java.util.*;
public class Main
{
public…
Swap two Number given by user | 4methods
*******************************************************************************/
import java.util.*;
public class Main
{
public…
👍7
Java Selenium Testing Interview Questions 【CodingAnywhere】
What are types of waits in Selenium?
Correct Answer-1.Implicit wait,2.Explicit wait 3.Fluent wait
👍1
Java Selenium Testing Interview Questions 【CodingAnywhere】
public class Main
{
public static void main (String [] args) { int x=4; x*=2+6; System.out.println(x); } }
{
public static void main (String [] args) { int x=4; x*=2+6; System.out.println(x); } }
Correct Answer:32
x=x*2+6, x=4*2+6,x=4*8,x=32.
x=x*2+6, x=4*2+6,x=4*8,x=32.
👍1
Which modifier can't be used for constructor
Final Results
17%
public
32%
private
30%
static
21%
protected
👍2
Java Selenium Testing Interview Questions 【CodingAnywhere】 pinned «Which modifier can't be used for constructor»
What is used to run automation scripts on multiple system simultaneously.
Final Results
31%
Selenium webdriver
5%
Selenium RC
57%
Selenium Grid
5%
Selenium IDE
2%
Selenium Core
👍1
Channel name was changed to «Java Selenium Testing Interview Questions 【CodingAnywhere】»
Java Selenium Testing Interview Questions 【CodingAnywhere】 pinned «What is used to run automation scripts on multiple system simultaneously.»
Java Selenium Testing Interview Questions 【CodingAnywhere】 pinned «/*Print UppperCase & LowerCase Letter Separatly from user provided String*/ import java.util.*; public class Main { public static void main(String[] args) { int count = 0; Scanner…»
What type of test case to be automated?
Final Results
75%
Data driven test cases
22%
Higher complexity
44%
Smoke tests
34%
Sanity tests
25%
TC with many database updates
6%
Exploratory tests
👍1
👍1🤔1
Java Selenium Testing Interview Questions 【CodingAnywhere】
What type of test case to be automated?
Correct Answers: Data driven test cases,higher complexity tests, smoke tests,TC with many databases updates.
👍1
Java Selenium Testing Interview Questions 【CodingAnywhere】
Array in java are-
Correct Answer-objects.
👍2
Select supermost interface present in selenium webdriver?
Anonymous Poll
42%
Webdriver
18%
Chormedriver
38%
SearchContext
2%
Screenshot
👍12🤔4
👍1