Challenge: Parameter Manipulation
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 4
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
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
Desliza para mostrar el menú
Tarea
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.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 2. Capítulo 4
single