1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
barxatty [35]
3 years ago
8

Write a function to return if the string is a valid password. To be a valid password, it must be at least 12 characters long and

only contain letters or numbers.
This is in Java.

Computers and Technology
2 answers:
vredina [299]3 years ago
8 0

Answer:

Rollercoaster1

Explanation: very useful password no-one would think of it

Svetllana [295]3 years ago
6 0

Answer:

Answer is in the attached screenshot!

Explanation:

Steps taken to solve the problem:

1) Store each character of the password in an array.

2) Go through each of the characters, if any of them is not a letter or a digit, then the password is not valid so you can return False.

3) If all the characters in the password are valid, we need to check if the length is valid.

4) If the length is valid return True (as we know the characters are also valid)

5) If the length isn't long enough, return False.

You might be interested in
Write the definition of a function, is_reverse, whose two parameters are arrays of integers of equal size. The function returns
Alisiya [41]

Answer:

def is_reverse(lst1, lst2):

   lst2 = lst2[::-1]

   if lst1 == lst2:

       return True

   else:

       return False

Explanation:

Create a function called is_reverse that takes two parameters, lst1 and lst2

Reverse the second list using slicing

Check if the first list and the second list are equal to each other. If they are, return True. Otherwise, return False

4 0
3 years ago
. ____________is/are the JSP ImplicitObject(s).sessionapplicationconfigAll of GivenNone of Given
Lynna [10]

Answer:

All of Given

Explanation:

JSP provides a number of implicit objects which are made available by the container and can be used directly in scriptlets. These objects include:

  • session
  • application
  • config
  • out
  • request
  • response
  • pageContext
  • page
  • exception

Example usage:

<% session.setAttribute("userid","demoid"); %>

<% application.getContextPath(); %>

<% out.println(config.getServletName()); %>

5 0
4 years ago
Host A and Host B are connected via a 10 Km, 100 Mbps link. Suppose A is transferring multiple 2 KB segments to B using rdt3.0.
stich3 [128]
ANSWER: Sender utilization
4 0
3 years ago
A single-user database system automatically ensures ____ of the database, because only one transaction is executed at a time.
natta225 [31]
<span>serializability and isolation is the answer.</span>
4 0
3 years ago
Does filtering by form enable you to filter by single field in ms access​
Keith_Richards [23]

Filtering by Form makes it easy to create a filter that uses more than one criterion. The Filter by Form window enables you to enter your filter criterion by picking values that you want the filtered records to have.

5 0
4 years ago
Read 2 more answers
Other questions:
  • When your tire blows out in the middle of a drive, you should _____. A. let go of the steering wheel B. pump the brakes immediat
    13·2 answers
  • You have decided to remove a recently installed feature which method can you use to remove this feature
    13·1 answer
  • A key or combination of keys that complete an action more efficiently than using the mouse is called a(n) keyboard shortcut.
    8·1 answer
  • PLEASE HELP! Which aspect helps you to change the luminescence of your image?
    10·2 answers
  • I'm stuck on this Java exercise problem and don't know how to organize my code with proper formatting and it's not helping that
    14·1 answer
  • What should I put on a college application?⊕
    8·1 answer
  • PLEASE HELP QUICK ASAP NO LINKS PYTHON CODING
    5·2 answers
  • A gui allows you to interact with objects on the screen such as icons and buttons true or false
    7·1 answer
  • Why does brainly say im in highschool when im in middle school?
    15·2 answers
  • Label some of the main service provided by the internet.using the picture​.. please...
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!