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
NeX [460]
3 years ago
11

What is the best way to improve the following code fragment? if ((counter % 10) == 0) { System.out.println("Counter is divisible

by ten: " + counter); counter++; } else { System.out.println("Counter is not divisible by ten: " + counter); counter++; } Move the duplicated code outside of the if statement Shorten variable names Move the brackets to save several lines of code Add semicolons after the if condition and the else reserved word
Computers and Technology
1 answer:
meriva3 years ago
5 0

Answer:

Move the duplicated code outside of the if statement

You might be interested in
In full screen reading view the blank is reduced
aksik [14]

Answer is: Yes

<u>Explanation:</u>

Word includes a full-screen mode that minimizes the extraneous information (tools, menus, etc.) displayed on the screen. The normal way of switching to full-screen mode is to display the View tab of the ribbon and click Full Screen Reading in the Document Views group. (If you are using Word 2013 or Word 2016 click Read Mode in the Views group.) You can also click the Full Screen Reading view icon (Read Mode view icon Word 2013 and Word 2016) near the right side of the Status bar located at the bottom of the document window. You exit the mode by either clicking the Close button (upper-right corner of the screen) or by pressing Esc.

4 0
3 years ago
Which statement is used to assign value to a variable?
Romashka [77]

Answer:

the "=" sign is used to assign value to a variable. Example:


int number = 25;

You are basically assigning the value '25' to a variable of type 'integer' called 'number'.

Explanation:

3 0
2 years ago
To create a link that starts an email, you code the href attribute as ________________________ followed by the email address.
timofeeve [1]
Mailto, followed by the email address.

E.g.: <span><a href="mailto:[email protected]">Mail me!</a></span>
5 0
3 years ago
Fill in the blank: A keyword set to _____ match type will display your ad if the search term contains the same order of the word
jekas [21]

A keyword set to <u>Algorithm's</u> match type will display your ad if the search term contains the same order of the words, but it can also contain additional words. Negative phrase broad specific

<h3>What is Algorithms?</h3>

Algorithms, which are sequences of actions linked together to accomplish a task, operate in this direction – their goal is to give internet users this very specific information.

With this information, we can conclude which algorithm is the tool used to obtain specific information and make it available to the user.

Learn more about Internet in brainly.com/question/18543195

3 0
3 years ago
Erin previously recorded all of her credit card activity manually using the expense transaction screen. She then reconciled the
-Dominant- [34]

Answer:

she should select reconciled account, then select batch actions and lastly exclude selected

Explanation:

Erin should reconcile her account if she cannot see the matches for the transactions that she entered and reconciled previously.

Banks use reconciliation methods to evaluate the transactions that are reported internally against monthly financial statements.

Erin has to take these steps:

Select reconciled transactions, then select batch actions and lastly exclude selected ones

4 0
3 years ago
Other questions:
  • What task can a user accomplish by customizing theme colors?
    14·2 answers
  • In asps, the code to tie the database to the web site is typically written in javascript or ____.
    15·1 answer
  • Your computer is crashing on a regular basis. Which of the following is an operation available to the user that should help rese
    6·2 answers
  • What to do when the tool bar for paint tool sai dissapears?
    12·1 answer
  • Which of the following is a form of security protection that protects individual files by scrambling the contents in such a way
    14·1 answer
  • TVBCA has just occupied an old historic building in downtown Pittsburgh in which 15 employees will work.
    13·1 answer
  • Hypercompetition implies that any architecture must be designed with maximum flexibility and _____ to ensure it can handle the i
    6·1 answer
  • In our discussion of Computer Hardware, we talked about three essential hardware components that are there inside every computer
    14·1 answer
  • Fill in the blank with the correct response. Wanting to become a better archer is a what?
    15·1 answer
  • Provide 3to 4 sentence overview of microsoft windows features?
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!