I. So blithesome was I on that eve, To you my amity I’d give. Wishing you would gladly receive. Now, no I don’t want you to leave. Been wearing my heart on my sleeve, And sure that’s for you to perceive. II. There are times I wish I could fly, And I’d go way up […]
Subtraction without using ‘-‘ operator in Java
College Basic Programming Activity Hi guys! I’m back and I’m going to share another programming problem and show the solution. Problem: Write a program which subtracts two integers without using minus (-) operator. Solution: Let’s use this algorithm: a – b = a + -1 * b Then, let’s convert to code: public static void […]
Blog Listing App Tutorial Part 1 – Setting Up Cordova App
Setting Up Cordova App Hi there buddy! This is the continuation of my previous post Apache Cordova Blog Listing App Important Note This tutorial assumes that you already have installed Cordova on your machine! 🙂 If not, then I encourage you to visit this site UPDATE: This is the latest site Let’s create the app […]
Android SwipeRefreshLayout
The latest update of android support library came out with an interesting new layout: SwipeRefreshLayout. This layout implements the pull-down-to-refresh pattern. In this tutorial, I will show you how to create a SwipeRefreshLayout with a ListView 🙂 Important Note: Support library project must be imported to our workspace and added to our main project as […]
Java Factorial Code
The factorial function (symbol: !) means to multiply a series of descending natural numbers. Examples: 4! = 4 Ă— 3 Ă— 2 Ă— 1 = 24 7! = 7 Ă— 6 Ă— 5 Ă— 4 Ă— 3 Ă— 2 Ă— 1 = 5040 import java.util.Scanner; public class Factorial { public static void main(String[] args) { […]
Java Print 1000 Hello World Without Loop
One of the Java questions I faced is to create a program which prints 1000 Hello World without using loop. So how do we solve this? The solution is to use recursion! public class HelloWorld { public static void main(String[] args) { printThousandHelloWorld(1); } private static void printThousandHelloWorld(int n) { if(n < 1000) { printThousandHelloWorld(n+1); […]
Apache Cordova Blog Listing App
Cordova Blog Listing App I would like to share my Blog Listing App which was developed using Apache Cordova. An Apache Cordova App is a hybrid app that is essentially a small website running in a browser shell that has an access to the native platform layer (browser shell i.e., iOS’s UIWebView or Android’s WebView) […]
How to Find Your Phone’s IMEI
How to Find Your Phone’s IMEI You might have heard about IMEI, but do not know what it is. IMEI stands for International Mobile Equipment Identity. It is an international “serial number” of your phone to properly identify it. This tutorial is only for Android phones. We can find our phone’s IMEI by doing the […]
The Only Solution
In my entire life, there is this one of the things that I have ever realised. Despite our own efforts to attain righteousness, it is still worthless and in vain. Only Jesus Christ can make us righteous by allowing Him to change our lives and hearts and with that we can be righteous before the […]
Google’s New UI Design Pattern – Navigation Drawer
Today I learned something new in Android Development which is Google’s new UI Design Pattern the Navigation Drawer. For more details go to this site and the sample is here