Challenge: 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.
- Write a method named
manipulateArraythat takes anint[]array and two integersmultiplyByandaddValueas parameters. - For each element in the array, first multiply it by
multiplyBy, then addaddValueto the result. - Return a new
int[]array containing the transformed values.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 4
single
Pergunte à IA
Pergunte à IA
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?
Awesome!
Completion rate improved to 8.33
Challenge: 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.
- Write a method named
manipulateArraythat takes anint[]array and two integersmultiplyByandaddValueas parameters. - For each element in the array, first multiply it by
multiplyBy, then addaddValueto the result. - Return a new
int[]array containing the transformed values.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 4
single