摘要: You have a table of integer numbers. You should rotate rows of the table by the specified distance. Try to use collections and standard methods for th 阅读全文
posted @ 2020-09-27 17:46 longlong6296 阅读(154) 评论(0) 推荐(0)
摘要: Write a program that reads the list of integer numbers separated by spaces from the standard input and then remove all numbers with even indexes (0, 2 阅读全文
posted @ 2020-09-27 14:08 longlong6296 阅读(102) 评论(0) 推荐(0)
摘要: Has it ever bothered you when unknown people call you and try to impose their services? That can be annoying. Let's try to solve the problem by using 阅读全文
posted @ 2020-09-27 12:23 longlong6296 阅读(107) 评论(0) 推荐(0)
摘要: The normal way to create an instance of a class is to use a public constructor of the class. But there is another technique. A class can provide a pub 阅读全文
posted @ 2020-09-21 14:33 longlong6296 阅读(228) 评论(0) 推荐(0)
摘要: You are given a Callable object. Some say that it returns another Callable object. And that Callable returns another Callable object! And so on. You s 阅读全文
posted @ 2020-09-17 18:57 longlong6296 阅读(108) 评论(0) 推荐(0)
摘要: Implement a method that takes three objects (instances of Thread or its subclasses). The method must start passed objects as threads in a way that the 阅读全文
posted @ 2020-09-16 11:04 longlong6296 阅读(115) 评论(0) 推荐(0)
摘要: Implement checkPublicParameterlessConstructor that returns true if the provided class declares public parameterless constructor and false otherwise. / 阅读全文
posted @ 2020-09-14 14:23 longlong6296 阅读(126) 评论(0) 推荐(0)
摘要: Implement the getPublicFields method that returns String array with names of public fields declared in the class object belongs to. Fields inherited f 阅读全文
posted @ 2020-09-14 09:35 longlong6296 阅读(119) 评论(0) 推荐(0)
摘要: Here's a class named Employee with three fields: name, salary, address. Add three constructors to the class: the first one is the no-argument construc 阅读全文
posted @ 2020-09-09 17:39 longlong6296 阅读(116) 评论(0) 推荐(0)
摘要: You are given the enum Operation and the class Account. Their implementations are shown below. The Operation enum: enum Operation { /** * deposit (add 阅读全文
posted @ 2020-09-09 13:46 longlong6296 阅读(233) 评论(0) 推荐(0)