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
4. What is a pentaprism? What job does it do in the camera?
Nadya [2.5K]
Pentaprism is a five sided prism with two silvered surfaces giving a non-stop deviation of all rays of light through 90 degress. Used in viewfinders of single-lens reflex cameras 
6 0
3 years ago
Read 2 more answers
Wanna be friends anyone
Klio2033 [76]

Answer:

lol nice pic sure

Explanation:

3 0
3 years ago
Read 2 more answers
What type of graphic organizer will help jane compare the results of a student survey about teachers at her school?
Olin [163]
For me its chart graph because you're able to visualize the given numbers and its not confusing
5 0
3 years ago
Read 2 more answers
A director notices that one of his camera operators is carrying an accessory without packing it properly in a bag to avoid hurti
slega [8]

Answer:

B. a tripod

Explanation:

We cannot have any problem with the electronic viewfinder, because is part of the camera, with this viewfinder we can see the picture that we will take.

A camera lens can be huge or tiny, but we cannot hurt anyone with them, and headphones are harmless.

In this example we have a tripod, there are different types of tripods, but always have three legs, and we could hurt someone if we don't carry it properly.

7 0
3 years ago
If you found out that your friend was blogging unsafely, which of the following would be a good action to take
emmasim [6.3K]
A is the best and safest answer. you don't want to sound like you are trying to control them or tell them what they should or should not do. <span />
3 0
3 years ago
Read 2 more answers
Other questions:
  • What is the difference between HTML and CSS? * 1. CSS is a markup language unlike HTML. 2. HTML is a backend technology and CSS
    12·2 answers
  • What is the benefit of a cloud computing infrastructure? ○ Companies have full control over the data that is hosted. ○ Companies
    11·1 answer
  • What is information associated with a document to help describe that document called?
    12·1 answer
  • Which option in Outlook allows a user to look at multiple calendars in a side-by-side fashion?
    14·2 answers
  • Q13. On which option do you click to
    12·1 answer
  • Why computer literacy is vital to access in business work
    7·1 answer
  • Question #2: How would you demonstrate professionalism in a video call with a teacher? Edmentum Digital world Please Help!!
    8·1 answer
  • Describe a NIC card and can you have more than one?
    13·1 answer
  • A(n) ________ address is the address that external entities use when communicating with your network.
    11·1 answer
  • Describe the concept behind a digital signature and explain how it relates to cybersecurity by providing a hypothetical example
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!