Please see my previous question here for the full code.
In case I want to internationalize my app, I need to create string objects for some statements in my project. The one bothering me most is this code block.
    ...
    else
        Toast.makeText(MainActivity.this, 
            "Good job! The answer was " + comp + ".\n" +
            "You made " + guesses + " guesses.\n" +
            "Restart the app to try again.", 
            Toast.LENGTH_LONG).show();
    }
};
The relative part to this in the strings.xml looks like:
<string name="correct">Good job! The answer was + comp\n
               You made + guesses + guesses.\n
               Restart the app to try again.</string>
I want the comp and guesses variables to show their respective values, but I don't know how.
I plan to do this to the code block
    ...
    else
        Toast.makeText(MainActivity.this, 
            R.string.correct, 
            Toast.LENGTH_LONG).show();
    }
};
Thank you.
 
     
     
     
     
     
    