How To Get User Input Using Console

Get User Input

Get User Input – Creating data by manually changing the variable inside the code is a usual thing to do. But, what if the data you need doesn’t exist yet? and that is until someone inputs it to your program.

Let’s do a small step and try to get input from users using the IDE’s console/terminal. This is a very easy thing to do, you can try to edit the code in any way you want it.

Continue reading How To Get User Input Using Console

Which Is Better : Java or C++?

What Should I Choose, Java or C++?

choosing java or c++Sometimes people compare these 2 programming languages on whether which one of it is better than the other. So today, I’m asking the question “Which Is Better: Java or C++?”. Now we need to look through many factors that will eventually lead one programming language as the winner.

No doubt that Java and C++ have their own advantages and weaknesses. So it can be a little hard for us to determine which one is better than the other. Both of them shares similarities either it’s on syntax or the fact that they are an object-oriented language.

But let’s not make it complicated, here is a list of differences between the two of them

Continue reading Which Is Better : Java or C++?

Explained: Java Coffee Mug History

Java Coffee Mug History

Java Coffee Mug HistoryJava Coffee Mug History ~ Java is a high-level programming language that has been around for a long time since its release. And now almost anyone uses it now, it’s only a small percentage of those people who know the history of the cup. Do you even know the history of it? well, in fact… the story is rather interesting as you’ll find out.

Continue reading Explained: Java Coffee Mug History

Why Java Is So Popular?

Biggest Reasons Why Java Is So Popular Amongst Programmers

Why Java Is So Popular
Perhaps #1 Programming Language

Why Java Is So Popular ~ Today we’re talking about the factors that make the 20 years old programming language “Java” is still popular amongst programmers. Nowadays Java is still the most popular programming language for developing an enterprise application.

Continue reading Why Java Is So Popular?

Advantages of Multithreading

Various Advantages of Multithreading

multitasking is and advantages of multithreading
Multitasking synonymous with efficiency

Advantages of Multithreading ~ These days the shortage of time has led us to a multitasking activities. Where that multitasking has been synonymous with the needs of efficiency. And that is not an exception for the programming world, a program that does a single task is just not enough anymore.

Continue reading Advantages of Multithreading

Code Aggregation *for code reusability

What is Code Aggregation

code aggregation
Code aggregation as reusability

If there is an entity reference in a class, then you what you have is a code aggregation. Aggregation usually represents HAS-A relationship.
Consider the following situation situation.

A Worker object contains many informations such as id, name, phone number etc. It contains one more object named address, which contains its own informations such as city, state, country etc. see it as given below.

Continue reading Code Aggregation *for code reusability

Java Split Method

What Is Java Split Method?

programming Java, Java Split Method
Programming Java

There’s a method in java that is used to “split” string into pieces, the split is based on a given regular expressions and a return char array. There are 2 type of syntax that can be used for Java Split Method, (for a fun fact java split method is available since java 1.4).

Continue reading Java Split Method

Java Covariant Return Type = Method Overriding

What Is Java Covariant Type?

Howdy Mowdy People? Have you ever override a method by changing its return type? Well for y’all that is already a pro in Coding may know this type of overriding, but for those who is still  a green horn in coding, just like me :’D maybe. This kind of method overriding is called Java Covariant Return Type, which is not available until Java5 came out.

Here ok, let me just show you a simple presentation of this Covariant Type :

Continue reading Java Covariant Return Type = Method Overriding