fork download
  1. import java.util.*;
  2. import java.lang.*;
  3. import java.io.*;
  4.  
  5. class StringLab
  6. {
  7. public static void main (String[] args) throws java.lang.Exception
  8. {
  9. Scanner input = new Scanner(System.in);
  10. String mainString;
  11.  
  12. mainString = input.next();
  13. StringBuilder changedString = new StringBuilder(mainString);
  14.  
  15. int dotIndex = changedString.indexOf(".");
  16.  
  17. if (dotIndex == -1) System.out.println("The dot was not found.");
  18. else
  19. {
  20. changedString.deleteCharAt(dotIndex);
  21. System.out.println(changedString);
  22. }
  23. }
  24. }
Success #stdin #stdout 0.06s 4386816KB
stdin
java.mazurok.com
stdout
javamazurok.com