Skip to content

Commit

Permalink
Create JavaEndOfFile.java
Browse files Browse the repository at this point in the history
  • Loading branch information
debeshp6 authored Nov 16, 2023
1 parent 4a41014 commit 94ea7c2
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions JavaEndOfFile.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;

public class Solution {

public static void main(String[] args) {

/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */

Scanner sc = new Scanner(System.in);
int c =1;
while(sc.hasNext()){
String s = sc.nextLine();
System.out.println(c+" "+s);
c++;
}
}
}

0 comments on commit 94ea7c2

Please sign in to comment.