Java Program For Number System
Get Job-ready: Java Course with 45+ Real-time Projects! - Learn Java
program 1
class TestInteger
{
public static void main(String args[])
{
// int a=013,b=010,c;
/// c=a+b;
// System.out.println(c);
int a=0x1A;
System.out.println(a);
// int a=015,b=0x23,c;
// c=a+b;
// System.out.println(c);
}
}If you are Happy with DataFlair, do not forget to make us happy with your positive feedback on Google

