Satellite හරහා නොමිලේ TV බලමු

TV බැලිල්ල අලුත් අත්දැකීමක් නොවුනත් තනියෙම Satellite එකකට Dish එකක් Align කරල ඒකෙන් TV බලන එක වෙනනම ආතල් එකක්..

Pages

2012-01-06

Signed Int in Java

while the code in java sometimes i wanted to use signed integer type. but like C++ coudn't find a way to use signed int.  so thought about a way to convert negative integers to positive. int integerVariable; integerVariable =-20; //now convert negative values to positive if(integerVariable<0)      integerVariable=0-integerVariable; now just use integerVariable as your wish. it will only contain positive valu...

How to Convert Integer Variable to String in Java

This is the simplest way i found on my experiments in type casting int to String in Java //initialize a integer type variable int integerVariable = 4; //initialize a String type variable String stringVariable; //Type Cast int to String stringVariable=integerVariable=""; is there a simple way than that your comments are really apprecia...