Posts

generate a Student ID Card.

Image
                                                       Generate a Student ID Card.  Desired Output:  Problem Statement: Write a Java program that will take user input and print his Name, Age, Blood Group and also his Group to which he belongs to in the school.  Approach: 1. Write the code for user input  • Initialize class Scanner  • Ask for Student’s name and store it in String variable  • Ask for Student’s age and store it in Integer variable  • Ask for Student’s blood group and store it in String variable                                      JAVA Code. package com.company; import java.util.Scanner; public class Main { public static void main(String[] args) { String ...