Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Parameter Manipulation | Working with Parameters
Mastering Methods in Java

bookChallenge: Parameter Manipulation

Tarefa

Swipe to start coding

You will practice manipulating method parameters in Java by performing a series of transformations on an array of integers.

  1. Write a method named manipulateArray that takes an int[] array and two integers multiplyBy and addValue as parameters.
  2. For each element in the array, first multiply it by multiplyBy, then add addValue to the result.
  3. Return a new int[] array containing the transformed values.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 4
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

Suggested prompts:

Can you explain this in simpler terms?

What are some examples related to this topic?

Where can I learn more about this?

close

bookChallenge: Parameter Manipulation

Deslize para mostrar o menu

Tarefa

Swipe to start coding

You will practice manipulating method parameters in Java by performing a series of transformations on an array of integers.

  1. Write a method named manipulateArray that takes an int[] array and two integers multiplyBy and addValue as parameters.
  2. For each element in the array, first multiply it by multiplyBy, then add addValue to the result.
  3. Return a new int[] array containing the transformed values.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 4
single

single

some-alt