Advertisement
sudoaptinstallname

Untitled

Jan 29th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. package com.company;
  2. import java.util.Scanner;
  3. public class Six_sixtyThree {
  4. public static void main(String[] args) {
  5. Scanner input = new Scanner(System.in);
  6. System.out.print("Input User ID: ");
  7. String ID = input.nextLine();
  8.  
  9. for(int i =0; i < 2; i++ )
  10. {
  11. int target = Integer.parseInt(ID.substring())
  12. target = ID.intAt(i);
  13. ID = ID.replaceFirst(target,"_");
  14. }
  15. }
  16. }
  17. // String s = Integer.toString(num);
  18. // int r = Integer.parseInt(s.substring(index, index+1));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement