write 2 methods named descBubbleSort() and descInsertionSort() that take an array
of Strings as an argument and sort the string values in a descending order using
bubble sort and insertion sort respectively.
Given a M x N matrix, write a program to print the matrix after ordering all the elements of the matrix in increasing order.For example, if the given M is 3 and N is 3, read the inputs in the next three lines if the numbers given in the next three lines are the following.
1 20 3
30 10 2
5 11 15
Given two strings(S1 and S2), write a program to determine if a string S2 is a rotation of another string S1.
For example, if the given strings S1 and S2 are "python" and "onpyth",
The first right rotation of s1 is "npytho" which is not equal to string S2"onpyth"
The second right rotation of s2 is "onpyth" which is equal to string S2 "onpyth".
So the output should be 2
Magazine
-name: String
-price: double
-editor: String
-email: String
+Magazine() <<constructor>>
+Magazine(String, double, String, String) <<constructor>>
+getters()
+setters()
+toString:() String
1. Code the Magazine class according to the class diagram.
2. Code a class MagazineApp.
a. This class have a main method.
b. Code an array that can hold 5 Magazine objects.
c. Add (hard-code) objects to this array.
d. Display the array on the screen. Use the toString().
e. Remember to code a heading for the report, as well as a ending message.
Distinguish among Multiprocessing, Multithreading, Multitasking and Multiprogramming. How do you ensure that N thread can access N resources without deadlock?
Why should we use event adapter class instead of event listener? Explain the following java terms- i) Event (ii) Listener (iii) Adapter iv) Action Listener
Write a program to copy the contents of one stack to another stack in the same order without using any extra data structure.
Implement PUSH, POP, and TRAVERSE operations on a stack using linked list.
Implement PUSH, POP, and TRAVERSE operations on a stack using array.
Implement polynomial addition and multiplication using linked lists.