Skip to content

Commit

Permalink
Code review adjusts in Day007Test
Browse files Browse the repository at this point in the history
  • Loading branch information
Viniberaldo committed Sep 29, 2024
2 parents 0b189bc + df1d1f5 commit dabd05f
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.thegreatapi.ahundreddaysofjava.day007;

import java.text.MessageFormat;

public class Day007 {

public static void main(String[] args) {
showMessage("Java", "is", "great");
}

public static void showMessage(String param1, String param2, String param3) {
String message = MessageFormat.format("This message contains 3 parameters. The #1 is ''{0}'', the #2 is ''{1}'', and the #3 is ''{2}''.",
param1, param2, param3);
System.out.println(message);
}
}

0 comments on commit dabd05f

Please sign in to comment.