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
padilas [110]
3 years ago
6

Write a "for loop" that displays a string in the reverse order (DO NOT use the reverse method) 3.

Computers and Technology
1 answer:
elena55 [62]3 years ago
5 0

Following are the code in java to reverse any string without using reverse function.

import java.util.*; // import package

class Main // class

{

public static void main(String args[])  // main class in java

{

String s, r = "";  // string variable

Scanner out = new Scanner(System.in);  // scanner classes to take input

System.out.println("Enter a string to reverse");

s = out.nextLine();  // input string

int l1 = s.length();  // finding length of string

l1=l1-1;

for ( int i = l1 ; i >= 0 ; i-- )  // for loop to reverse any string

{

r = r + s.charAt(i);

}

System.out.println(" The Reverse String is: "+r);  // print reverse string

  }

}

Explanation:

firstly we input any string ,finding the length of that string then after that iterating over the loop by using for loop and last display that reverse string

output

Enter a string to reverse

san ran

The Reverse String is: nar nas

You might be interested in
Question 15 of 25
GaryK [48]
It gains purchasing power. Less money in circulation = more value.
5 0
3 years ago
1. A teacher asked a student to capture and print out a one-slide presentation using MSWord,       showing everything on the scr
Drupady [299]

The keyboard combinations that can be used to capture and print out a one-slide presentation using MSWord, showing everything on the screen is Function key + PrtScr

<h3>What is a Key Combination?</h3>

This refers to the procedure that is used to combine two or more keys on the keyboard to execute a task.

Hence, we can see that the procedure that can be used to carry out the operation is:

  • Enter the screen you want to capture and print
  • Press the Function key, followed by the PrtScr. Please note this can vary slightly, depending on the keyboard.

The hardware devices that would be needed to be set up by the system analyst at a computer laboratory are:

  • System Unit
  • Laptops/Monitor
  • Power adapters
  • Ethernet cables, etc

The database applications that can be recommended by the system analyst are:

  • MySQL,
  • SQL Server

The five word processing packages that are likely to be installed are:

  • G00..gle Docs
  • MsWord
  • MSOffice
  • Dropbox Paper
  • Corel WordPerfect

Read more about word processing here:

brainly.com/question/985406

#SPJ1

6 0
2 years ago
How do you get stickman worriers
ira [324]
You go online and find the answer
8 0
3 years ago
Create a cell reference in a formula by typing in the cell name or
lesya [120]

1 Click the cell in which you want to enter the formula.

2 In the formula bar , type = (equal sign) and the formula you want to use.

3 Click the tab for the worksheet to be referenced.

4 Select the cell or range of cells to be referenced.

MARK ME BRAINLIEST PLEASE!!!!!!!!!

5 0
3 years ago
Read 2 more answers
What was one of the goals of the Affordable Care Act ACA ?
AveGali [126]

Make more people eligible for affordable health insurance. Consumers who live in families with incomes between 100% and 400% of the federal poverty level are given subsidies under the statute that reduce their expenditures in Act ACA.

The three main goals of the Patient Protection and Affordable Care Act (ACA) are to: (1) reform the private insurance market, particularly for individuals and small-group buyers; (2) expand Medicaid to the working poor with incomes up to 133% of the federal poverty level; and (3) alter the way that medical decisions are made. All three goals are founded on the premise that rational decision-making will be influenced by incentives but unrestricted by other factors and will primarily depend on individual decisions as opposed to government regulation. The implicit presumption is that people and organizations will behave in accordance with these reforms to create a valuable good at a reasonable cost paid by equitable risk sharing. Affordable healthcare will be the outcome.

Learn more about ACA from

brainly.com/question/29793081

#SPJ4

4 0
1 year ago
Other questions:
  • What are you required to verify before allowing a person to operate your pwc?
    8·1 answer
  • Which form of investigation aims at checking whether or not a target system is subject to attack based on a database of tests, s
    15·1 answer
  • Assign jsonData with the parsed value of the stringData variable. Then, assign 29 to the points property in jsonData and assign
    13·1 answer
  • Ben pays his mobile bills, watches movies, and shops online using the Internet. Which internet activity does he perform?
    13·2 answers
  • A string with delimiters can be parsed into separate fields using the _____ class.
    8·1 answer
  • Write assembly programs with the following I/O
    15·1 answer
  • What is Celeste? ( This is for my coding class )
    6·2 answers
  • The purpose of a good web page design is to make it
    9·2 answers
  • In this assignment you will be building an implementation of the hypothetical machine simulator like the one discussed in chapte
    5·1 answer
  • What are 2 ways to send a message to your client when signed in as an accountant user?.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!