1.代码packagecom.test;importjava.util.*;publicclassMain{staticdoublec;staticintn;staticdoublew[];staticdoublep[];staticdou…