Tuesday, 24 March 2015

Data Types in Java ( Part 1)

              For the most commonly used data types, Java provides the following base types
              (also called primitive types):

                                                         boolean        a boolean value: true or false
                                              char             16-bit Unicode character
                                              byte              8-bit signed two’s complement integer
                                              short            16-bit signed two’s complement integer
                                              int                32-bit signed two’s complement integer
                                              long             64-bit signed two’s complement integer
                                             float              32-bit floating-point number (IEEE 754-1985)
                                             double          64-bit floating-point number (IEEE 754-1985)

                     A variable having one of these types simply stores a value of that type. Integer
                     constants, like 14 or 195, are of type int, unless followed immediately by an ‘L’
                     or ‘l’, in which case they are of type long. Floating-point constants, like 3.1416
                     or 6.022e23, are of type double, unless followed immediately by an ‘F’ or ‘f’, in
                     which case they are of type float. Code Fragment 1.1 demonstrates the declaration,
                     and initialization in some cases, of various base-type variables

               1 boolean flag = true;
               2 boolean verbose, debug;            // two variables declared, but not yet initialized
               3 char grade = 'A';
               4 byte b = 12;
               5 short s = 24;
               6 int i, j, k = 257;                         // three variables declared; only k initialized
               7 long l = 890L;                           // note the use of ”L” here
               8 float pi = 3.1416F;                    // note the use of ”F” here
               9 double e = 2.71828, a = 6.022e23;   // both variables are initialized

Sunday, 15 March 2015

Top 10 Reasons to Major in Computing

1. Computing is part of everything we do!
Computing and computer technology are part of just about everything that touches our lives from the cars we drive, to the movies we watch, to the ways businesses and governments deal with us. Understanding different dimensions of computing is part of the necessary skill set for an educated person in the 21st century. Whether you want to be a scientist, develop the latest killer application, or just know what it really means when someone says “the computer made a mistake”, studying computing will provide you with valuable knowledge.

2. Expertise in computing enables you to solve complex, challenging problems.

Computing is a discipline that offers rewarding and challenging possibilities for a wide range of people regardless of their range of interests. Computing requires and develops capabilities in solving deep, multidimensional problems requiring imagination and sensitivity to a variety of concerns.

3. Computing enables you to make a positive difference in the world.

Computing drives innovation in the sciences (human genome project, AIDS vaccine research, environmental monitoring and protection just to mention a few), and also in engineering, business, entertainment and education. If you want to make a positive difference in the world, study computing.

4. Computing offers many types of lucrative careers.

Wednesday, 11 March 2015

Migrating to Android Studio

If you have been using Eclipse with ADT, be aware that Android Studio is now the official IDE for Android, so you should migrate to Android Studio to receive all the latest IDE updates.
To migrate existing Android projects, simply import them using Android Studio:
  1. In Android Studio, close any projects currently open. You should see theWelcome to Android Studio window.
  2. Click Import Non-Android Studio project.
  3. Locate the project you exported from Eclipse, expand it, select thebuild.gradle file and click OK.
  4. In the following dialog, leave Use gradle wrapper selected and click OK. (You do not need to specify the Gradle home.)

Sunday, 1 March 2015



I Year I Semester

Advanced Data Structures and Algorithms 
Computer System Design 
Advanced Operating Systems 
Software Process and Project Management