small fixes
This commit is contained in:
@ -6,8 +6,11 @@ public class number {
|
||||
|
||||
System.out.println("Enter your phone number in 10 DIGIT!");
|
||||
String phone = scan.next();
|
||||
System.out.println("Full : ("+phone.substring(0,3)+")"+phone.substring(3,6)+"-"+phone.substring(6,10));
|
||||
System.out.println("Local : "+phone.substring(3,6)+"-"+phone.substring(6,10));
|
||||
System.out.println("Campus : "+phone.substring(5,6)+"-"+phone.substring(6,10));
|
||||
System.out.println("Full : ("+phone.substring(0,3)+") "+
|
||||
phone.substring(3,6)+"-"+phone.substring(6,10));
|
||||
System.out.println("Local : "+phone.substring(3,6)+"-"+
|
||||
phone.substring(6,10));
|
||||
System.out.println("Campus : "+phone.substring(5,6)+"-"+
|
||||
phone.substring(6,10));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user