Skip to content

Instantly share code, notes, and snippets.

@TheEYL
Created November 8, 2014 12:26
Show Gist options
  • Save TheEYL/d1d36a7d3d1bdc69df76 to your computer and use it in GitHub Desktop.
Save TheEYL/d1d36a7d3d1bdc69df76 to your computer and use it in GitHub Desktop.
Xonta- Version 1.0
----------------------
Change the digits of Android Phone contacts
public String add(String number){
The digits should be increased by one if and only if the sum of numbers are equal to 8 and start with 2, 3, 5, 9, 7, or 6 .
Append "6" on Nextel, Orange, and MTN.
or
Append "2" on camtel phone numbers.
if (number == 50 ||number == 51 || number == 52 || number== 53 || number == 54){
append "6";
set(MTN);
}
if (number == 55 ||number == 56 || number == 57 || number== 58 || number == 59){
append"6";
set(Orange);
}
}
If the number is greater than 8;
public String tuncate(String number){
case("+237")
add();
// case("00237")
add();
//case("(237)")
add();
public String append(String neo) {
should add the string "neo"
and
setContact();
}
public String setContact(String Org)
{
set the Contact as being either Nextel, Orange, MTN, camtel.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment