I hereby claim:
- I am farhadfaghihi on github.
- I am farhadfaghihi (https://keybase.io/farhadfaghihi) on keybase.
- I have a public key ASCu1KC0BZZvHvKWn2j6SNy81ZUkm16-_e1eGFnOrkUlPAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
package ir.jibmib; | |
import java.math.BigInteger; | |
public class Main { | |
public static void main(String[] args) { | |
try{ | |
BigInteger result = tailRecFactorial(1000,BigInteger.valueOf(1)) ; |
package io.github.farhadfaghihi; | |
import com.google.gson.Gson; | |
import com.google.gson.annotations.SerializedName; | |
import com.google.gson.reflect.TypeToken; | |
/** | |
* This project shows a sample code for using java Generic Types de/serialization, | |
* Google's gson library. | |
* The project is about consuming the responses from a webservice, which all of its |
public static boolean isRunningOnEmulator() | |
{ | |
Boolean result = false; | |
if( | |
"google_sdk".equalsIgnoreCase(Build.PRODUCT) || | |
"sdk_google_phone_x86".equalsIgnoreCase(Build.PRODUCT) || | |
"sdk".equalsIgnoreCase(Build.PRODUCT) || | |
"sdk_x86".equalsIgnoreCase(Build.PRODUCT) || | |
"vbox86p".equalsIgnoreCase(Build.PRODUCT) || |