C Program to find the area of a trapezium. In this particular article, we will brief in on the different ways the area of a trapezium is calculated in C programming. The methods discussed here are as follows: Using Standard Method Using Function Using Pointers Using Macros A Trapezium is a quadrilateral which has a single pair of parallel opposite sides. ...
Read More »Author Archives: Writer - MK
Java Program To Concatenate Two Strings | Java Programs
Java Program For Concatenating Two Strings – In this specific article, we will cover the Java Program for concatenating or combining two user-defined strings in Java language along with suitable examples and sample output. The problem here is to concatenate two strings input by the user. The input here is two strings that are input by the user. The ...
Read More »Java : Return/Get First Element In Array List | 4 Ways
Java get first element of array list, the following Java program has been written in a multiple ways to print the first element of an array in Java along with outputs, if you have any doubts you can leave a comment here. Check – Java Return Last Element In Array This code is for displaying or printing out the first ...
Read More »Java Program to Find Hamming Distance Two Strings | Java Programs
Java program to calculate hamming distance between two strings & two Integers. The following program has been written in multiple ways along with sample output. If you looking out for any clarficiations regarding hamming distance, leave a comment here. For solving any problem, we first need to understand the problem statement properly and then, look for any constraints if mentioned. ...
Read More »Java: Add a Consecutive Numbers Program | Java Program
Addition of Consecutive Numbers in Java Program – This specific article talks about the code to find Find consecutive numbers in an array java using Java language. The problem here is to find the sum of a set of consecutive numbers or more specifically the sum of all the numbers from 0 to a user-specified integer. Our constraint here is ...
Read More »C Program Area Of Parallelogram | C Programs
Another program in the list of C Programs – C program to find the area of a parallelogram, with sample outputs and sample example code. Do check it out. In this appropriate article, we will learn the numerous methods to calculate the area of a parallelogram in C programming. The ways to calculate the area of a parallelogram in C ...
Read More »Java : Bitwise Operators (AND, OR, XOR) Programs | Java Tutoring
Bitwise operators in Java that may be used to integer types such as long, int, short, char, and byte. The bitwise operator operates on bits and performs bit-by-bit operations. Bitwise operator in java questions has been a thing since the beginning. Here, we will take care of several such as AND operator java program, XOR bitwise Java program, OR bitwise ...
Read More »Find Missing Third Angle in Triangle : Java Program
Java Program to enter two angles of a triangle and find the third angle in Java, to find the missing third angle, we first need the other two known angles of the triangle. Our expected output is whether the angle is an acute angle, an obtuse angle or a right angle. To begin the solution, we first require the two ...
Read More »Convert String To Date In Java – JavaTutoring
Convert String to Date In Java – Here we cover the different ways to convert string to date in Java. Out of all those at first we would like to go for SimpleDateFormat. For Example: Let us assume we have a String “5/10/2009” that holds a Date. In American format we can understand this as May-10-2009. Suppose we are working ...
Read More »Java Program to Calculate Restaurant Bill | Java Programs
Java code to calcuate the resturant bill, the following program is pretty simple one along with sample outputs. We have choosen the famous south indian food to create the following program. We all go to restaurants frequently and eat. Today, let us write a code to calculate the restaurant bill. With multiple items in a restaurant (in our case 10), ...
Read More »