Skip to content

Instantly share code, notes, and snippets.

View balsikandar's full-sized avatar
💭
Working on React native and Android as the Team Lead of Carwale

BAL SIKANDAR balsikandar

💭
Working on React native and Android as the Team Lead of Carwale
View GitHub Profile
if (pickupSelected && dropSelected) return gotoNextPage()
if (selectedTab === "PICKUP_POINT") {
if (pickupSelected) {
goToDrop();
} else {
toast("Please select pickup location")
}
}
if (pickupSelected && dropSelected) return gotoNextPage()
var msg: String? = "Please select pickup location"
if (selectedTab === "PICKUP_POINT" && pickupSelected) {
goToDrop()
msg = null
}
msg = msg ?: "Please select drop location"
if (selectedTab === "DROP_POINT" && dropSelected) {
fun main() {
val carDealer = CarDealer()
println(carDealer.getSpeed(VehicleTypes.BUS))
}
class CarDealer {
val map = HashMap<VehicleTypes, Vehicle>()
init {
map.put(VehicleTypes.CAR, Car())