Answer:
The code will give an error that is "At least one public class is required in main file".
Explanation:
In the given code if we do not use the public access modifier to the class. It will give an error so, the correct code to this question as follows:
Program:
import java.util.HashSet; //import package
public class A //define class as public.
{
public static void main(String[ ] args) //define main method.
{
HashSet set = new HashSet(); //creating hashset object.
set.add("A"); //add alphabet in hashset
set.add("B"); //add alphabet in hashset
set.add("C"); //add alphabet in hashset
System.out.print("Size of HashSet is :"set.size()); //print the size of hashset.
}
}
Output:
Size of HashSet is : 3
Explanation of the program:
- In the above program, we define a public class that is "A" and inside the class, we define the main method.
- Inside the main method, we create a HashSet class object that is "set".
- To add elements in HashSet we use add() function that adds elements and in the last, we use the size() function that prints the size HashSet.
We must be careful of when retrieving messages/data from mobile devices in public because of Bluebugging. It is a form of attack through the use of Bluetooth. It is more than just Bluesnarling and Bluejacking. It goes beyond, allowing the thieves to take control of a device.
terms = ["Bandwidth", "Hierarchy", "IPv6", "Software", "Firewall", "Cybersecurity", "Lists", "Program", "Logic",
"Reliability"]
def swap(arr, in1, in2):
w = arr[in1]
arr[in1] = arr[in2]
arr[in2] = w
print(terms)
swap(terms, 5, 1)
swap(terms, 2, 4)
swap(terms, 3, 5)
swap(terms, 5, 6)
swap(terms, 6, 8)
swap(terms, 8, 9)
print(terms)
This is how I interpreted the question. If I need to make any changes, I'll do my best. Hope this helps though.
HTML5
HTML5 has fewer plug-ins like the ability to standardize how audio and video are presented on a Web page. It introduces the <video> element designed to remove the need to install 3rd party add-ons and plug-ins like adobe flash player. It also adds the <audio> element too that allows pages to smoothly add audio files.
Answer:
<u><em>please mark brainliest!</em></u>
Explanation:
Benjamin Franklin found and acquainted power (electricity) with the USA. He likewise had numerous different developments such the wood stove. Benjamin Franklin initially stunned himself in 1746, while leading examinations on power with discovered items from around his home. After six years and precisely 261 years back today, the establishing father flew a kite joined to a key and a silk lace in a storm and adequately caught lightning in a jug.