Answer:
Java program is explained below
Explanation:
import java.util.HashSet;
import java.util.Map;
import java.util.TreeMap;
public class TruckRace1 {
public static HashSet<String> getPIDs (Map<String,String>nameToPID ){
HashSet<String> pidSet = new HashSet<>();
for(String ids: nameToPID.values()){
pidSet.add(ids);
}
return pidSet;
}
public static void main(String[] args) {
Map<String,String> pids = new TreeMap<>();
pids.put("John","123");
pids.put("Jason","124");
pids.put("Peter","125");
pids.put("Alice","126");
pids.put("Peny","129");
HashSet<String> ids = getPIDs(pids);
for(String id:ids){
System.out.println(id);
}
}
}
Answer:
the teacher said a (dash) reads pages on website pls answer me now i have to write it now
Answer:
See Explaination
Explanation:
This assume that input is a file and is given on command line. Please note this will ot print lines with frederick as thats what I feel question is asking for
#!/usr/bin/perl -w
open(FILE, $ARGV[0]) or die("Could not open the file $ARGV[0]");
while ($line = <FILE>){
if($line=~/\s+fred\s+/)
{
print $line;
}
}
close(FILE);
Hello there!
They already gave you the answer just by saying "while serving his or her nation". So, the only way you can serve your nation is when you join the military.
So, the correct missing word is Joining the military.
I hope this helps!
Answer:
D. Flash the BIOS
Explanation:
The function of the BIOS is to test all computer hardware that is attached to a machine before loading the operating system. Since the bios contains firmware that enables the configuration of computer hardware. when the 2 TB hard drive is connected the technician should update the program stored on the BIOS chip in other words flash the bios for it to be able to read the new hard drive. Reinstalling the drive will not make a difference as long as the BIOS still detects the 250 GB hard drive.