Answer:
Desktop icons include Computer, your personal folder, Network, the Recycle Bin, Internet Explorer, and Control Panel. 1. Right-click an empty area of the desktop, and then click Personalize.
To arrange icons by name, type, date, or size, right-click a blank area on the desktop, and then click Arrange Icons. Click the command that indicates how you want to arrange the icons (by Name, by Type, and so on).
Explanation:
The advantages of java.util.Stack are as following:-
- java.util.Stack is an implementation of the vector class hence it can keep track of position of elements in the stack hence it is not required to store an additional pointer for each node.
- In the implementation it allocates space only that much is needed.
These are the two advantages of java.util.Stack.
Answer:
// here is code in java.
import java.util.*;
// class definition
class Solution
{
// main method of the class
public static void main (String[] args) throws java.lang.Exception
{
try{
// scanner object
Scanner s=new Scanner(System.in);
// variables
String s_name;
int s_num;
System.out.print("Please enter the name:");
// read the student name
s_name=s.nextLine();
System.out.print("Please enter the number:");
// read the student number
s_num=s.nextInt();
// print name and number 12 times
for(int i=0;i<12;i++)
{
System.out.println(s_name+"----"+s_num);
}
}catch(Exception ex){
return;}
}
}
Explanation:
Create a scanner class object to read input from user.Read the student name and the number from user and assign them to variable "s_name" and "s_num".Print the student name and number 12 times with the help of for loop.
Output:
Please enter the name:Mary Kaur
Please enter the number:123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456
Mary Kaur----123456