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
igomit [66]
3 years ago
7

JAVA

Computers and Technology
1 answer:
butalik [34]3 years ago
5 0

Answer:

import java.util.*;

public class MyClass {

   public static void main(String args[]) {

       Scanner input = new Scanner(System.in);

       System.out.print("Input a word: ");

       String userinput = input.nextLine();

       for(int i =0;i<userinput.length();i+=2) {

           System.out.print(userinput.charAt(i));

       }

   }

}

Explanation:

This line prompts user for input

       System.out.print("Input a word: ");

This declares a string variable named userinput and also gets input from the user

       String userinput = input.nextLine();

The following iterates through every other character of userinput from the first using iteration variable i and i is incremented by 2

       for(int i =0;i<userinput.length();i+=2) {

This prints characters at i-th position

           System.out.print(userinput.charAt(i));

You might be interested in
What report indicates the last page users viewed before leaving a website?.
Serhud [2]

Answer:

You can find the last page users viewed before leaving the website on the “Exit Pages” report under “Site Content”

Explanation:

This can also give you a percentage of exits as well as the number of exits from a page.

If you have an important page, (using a silly example, a picture of your dog) that you really want people to see, you can check the exit pages and see how many people are actually seeing this <em>great</em> picture of your dog, or adjust your site if needed.

Have a nice day!

     I hope this is what you are looking for, but if not - comment! I will edit and update my answer accordingly.

- Heather

3 0
2 years ago
what are the two capabilities of the internet that promote and sustain customer relationships? multiple choice question. anywher
nika2105 [10]

The two capabilities of the internet that promote and sustain customer relationships is option C: interactivity and individuality.

<h3>What can the internet do and how does it function?</h3>

A global computer network called the internet transmits many types of data and media between linked devices. It functions by utilizing a packet-routing network that complies with Transport Control Protocol (TCP) and Internet Protocol (IP).

Therefore, Note that Web interactivity describes interactive elements that are integrated into websites and allow for the exchange of information between users of technology or between users of communication technology.

Learn more about internet  from

brainly.com/question/2780939
#SPJ1

5 0
2 years ago
Deborah believes that people of other nationalities are inferior to her. She treats them with disdain and does not miss an oppor
belka [17]
I recommend asking another category, not sure which one but computers and technology is not a good start. Keep looking and good luck!
3 0
3 years ago
I recently made this so I won't mind if you look at it: https://scratch.mit.edu/projects/594493248
SVETLANKA909090 [29]

Answer:

Its really good just make it so you can reload faster because the zombies keep catching up :)

Explanation:

8 0
3 years ago
Consider the following code snippet:
Schach [20]

Answer:

c. The Auto class overloads the setVehicleClass method.

Explanation:

In this snippet of code the Auto class overloads the setVehicleClass method. This is because if a super-class and a sub-class have the same method, the sub-class either overrides or overloads the super-class method. In this case the sub-class Auto is overloading the setVehicleClass method because the parameters are different. The Auto class methods parameter are of type int while the super-class methods parameter are of type double. Therefore, it will overload the method if an int is passed as an argument.

6 0
3 years ago
Other questions:
  • How to Ctrl + shift + F4 but in a HP laptop?​
    8·2 answers
  • Nonverbal communication relies on _________________. a. multiple channels b. continuous feedback c. ambiguous interpretation d.
    9·1 answer
  • Is it more beneficial to have many folders or is it better to " nest subfolders? Explain your response
    5·1 answer
  • 2) [13 points] You’ve been hired by Banker Bisons to write a C++ console application that determines the number of months to rep
    8·1 answer
  • What general (system) recommendations might you make to the shop manager? (For example. if the system will be integrated, what m
    13·1 answer
  • A website requires their users to create a password for their own account using numbers from 0-5, inclusive, non-repeatedly. The
    7·2 answers
  • Word processing software, spreadsheet software, database software, and presentation software are examples of what category of co
    13·1 answer
  • What word describes a violation of copyright laws? What rights do copyright holders have over their work of art
    5·2 answers
  • Select the answer that best descibes what an opportunity cost is
    6·1 answer
  • In PC relative addressing mode, the PC and constant need to be added to
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!