Today I'm going to show you how to use Variables in Java Programming. I have shown you how to declare a variables and initialize a variable in my previous posts (How To Initialize Variable In Java, How To Declare A Variable In Java ). In this post I'm going to show you how to use Variables created by using "byte" data type.
Let's see how to do this coding,
This is the output,
Let's see how to add two byte values, here I'm going to use simple addition operator. Don't worry about that operator I will show you how to use those operator in Java in my upcoming posts.
Here comes the output,
Let's try to do this in another way,
Output,
No comments:
Post a Comment