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

bookChallenge: Parameter Manipulation

Tâche

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.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 4
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

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

Glissez pour afficher le menu

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 4
single

single

some-alt