brabo-hi
07/31/2018, 1:27 AMadam-mcneilly
07/31/2018, 1:32 AMval myNewString = passedInString and then do whatever you want with your new variable.brabo-hi
07/31/2018, 1:49 AMthymecypher
07/31/2018, 1:58 AMthymecypher
07/31/2018, 2:01 AMthymecypher
07/31/2018, 2:01 AMarekolek
07/31/2018, 7:40 AMSo what is the best way to send either a pointer or a reference to the string passed in parameterWhy would you need that? Just because it's
val doesn't mean it's immutable, for example if it's a val x: MutableList<String>, you can still add and remove elements of xarekolek
07/31/2018, 7:41 AMval is like final in java and means you can't reassign itkarelpeeters
07/31/2018, 8:30 AMfun set(x: Int) { x = 3 } doesn't do anything in Java either.