I have to fix programme where the programme asks the user for an input of a random text.
When the text is written in the programme will change specific letters like a to be c so
I am a man would be I cm c mcn
public static void main(String[] args){
Scanner user_input = new Scanner (System.in);
"
String text;
System.out.print("enter a text!");
text = user_input.next();
String newText = text.replace('d', 'l');
System.out.println( "new = " + newText );
}
}
"