Question
please help me with the answers Question number 2: According to the concept of regular expression, regular expressions in java are used to validate: Java
please help me with the answers
Question number 2: According to the concept of regular expression, regular expressions in java are used to validate:
Java Programming Syntax Text strings GUI controls CRUD sentences to the database
Question number 40:
A regular expression in java can be used to: (There are several answers)
Validate that the alphanumeric characters that a client enters into the application belong to a defined pattern. Validate that a person's e-mail address is spelled correctly. Validate the landline and cell phone number entered by the customer through a GUI interface Validate a person's ID number in length and input only numbers Question number 39:
Based on the following section of code written in Java. which package or library should be imported and placed on line 2 for your compilation to be correct?
1. package javaapplication2;
2. import _______________
3. public class JavaApplication2 {
4. public static void main(String[] args) {
5. HashSet Data = new HashSet ();
6. Data.add("Value1");
7. Data.add("Value2");
8. Data.add("Value3");
9. Data.add("Value4");
10. Data.add("Value5");
11. for (Object Value : Data)
12. {
13. System.out.println(Value);
14. }
15. }
16. } Question number 38:
For the following statement to work correctly in java, where Passenger is a class, which package should be imported?
ArrayList< Passenger > lstPassenger = new ArrayList<>();
java.util java.Array java.util.ArrayList java.ArrayList Question number 37:
Which of the following alternatives is correct to place in the blank. The method __________ with an argument, attaches an item to the end of an ArrayList object.
remove contains size add
Question number 36:
When working with generics, the method __________ with a reference to an object as an argument, removes the first element that matches the value of the argument.
contains size remove add
Question number 35:
When working with regular expressions, which class allows you to define the pattern to validate a regular expression?
Pattern Matcher Find Validate
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started