String Concatenation in Java Concatenation is joining or combining two or more strings. In this java program, we are going to combine two strings to form a single one. This program will accept inputs from the user using the scanner…
Tag: java programming
Display Date and Time in Java
Display Date and Time in Java Java program that will display the system date and time. You can also modify the format of the time using the SimpleDateFormat class. The program is written in console and gui format.
JOptionPane in Java
JOptionPane in Java A sample program in java that shows the different dialogs of JOptionPane; showMessageDialog which displays a message, showConfirmDialog which shows three options (yes, no and cancel), showInputDialog which allows you to input or enter a text.
Image Button in Java
Image Button in Java This is a gui program in java that demonstrate how to add image to a button. Note: the image and the java file must be on the same directory.
Java while and the do while loop statements
The while and the do while statements in Java Programming. We will introduce you to other types of looping statement in Java (while and do while loop). while loop while loop is a control structure in Java that executes a…
Java Programming for loop statement
Hi there! This next lesson will be on understanding for loop in Java Programming. The for loop statement This type of loop will repeat Java statements for a specific number of times.
Learning Switch Statement in Java Programming
Welcome to our next Java lesson and in this lesson we are going to learn about the switch statement. What is a switch statement? A switch statement is just like if else if statement the difference is that there is…