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

bookChallenge: Parameter Manipulation

Compito

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.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 4
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

close

bookChallenge: Parameter Manipulation

Scorri per mostrare il menu

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 2. Capitolo 4
single

single

some-alt