Posts

Showing posts from April, 2026

📢 Join My WhatsApp Channel JavaWithSumit

Get Daily ICSE Java Notes, Programs & Exam Tips 🚀

👉 Join Now

📘 Java Program to Input and Display User Details in Table Format

 ðŸ“˜ Java Program to Input and Display User Details in Table Format  In this program, we will take input like name, age, address, mobile number, and email ID and display it in a proper table format. 🧠 Concepts Used Scanner class for input Variables and data types Formatted output using \t (tab space) 🪜 Algorithm Start the program Import the Scanner class Create Scanner object Input the following details: Name Age Address Mobile Number Email ID Store values in variables Print table heading Print column names (Name, Age, Address, Mobile, Email) Display all values in one row using tab space Stop the program 💻 Java Program import java.util.Scanner; public class UserDetails{     public static void main(String args[ ]) {         Scanner sc = new Scanner(System.in);         // Input Section         System.out.print("Enter Name: ");         String name = sc.nextLine();       ...