Challenge: Parameter Manipulation
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 4
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
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
Svep för att visa menyn
Uppgift
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.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 2. Kapitel 4
single