Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package TextPlocessing.MoreExercises;
- import java.util.Scanner;
- public class O5HTML {
- public static void main(String[] args) {
- Scanner scanner = new Scanner(System.in);
- String first = scanner.nextLine();
- String second = scanner.nextLine();
- String input = scanner.nextLine();
- System.out.printf("<h1>%n %s%n</h1>%n<article>%n %s%n</article>%n", first, second);
- while (!"end of comments".equals(input)) {
- System.out.printf("<div>%n %s%n</div>%n", input);
- input = scanner.nextLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment