My code is working. I dont need to declare the second variable.
package com.codegym.task.task01.task0116;
/*
Let's change the code
*/
public class Solution {
public static void main(String[] args) {
String name = "Ellie";
String str = "Amigo";
name = "Amigo" ;
String text = "Hello, " + name + "!";
System.out.println(text);
}
}