Java | JSP | JSF Answers

Questions: 4 418

Answers by our Experts: 3 943

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Discuss the orthogonality of Java language one the following: package, class, method according to the following criterias: access and overloading .
Java assignment :
A string S is made of symbols only in {a, b}. The regular expression anbn represent a string that is made of a certain number of letter a followed by exactly same number of letter b. Using both queue and stack, design an algorithm (in pseudo code) and a set of data structures (in interfaces), and implement them in a Java program (Eclipse project) which could judge if S matches anbn
WRITE A PROGRAMME CODE:(JAVA/C++)

Take the Numbers from 1 to 10 and the numbers should print five numbers in each line like below,
The output is not printing all combinations of the numbers, the numbers are missing because the logic you need to use its a four number matching system and you can see the numbers below how they printing.

output as follows:

6 7 8 9 10
4 5 8 9 10
4 5 6 7 10
3 5 7 9 10
3 5 6 8 10
3 4 7 8 10
3 4 6 9 10
2 5 7 8 10
2 5 6 9 10
2 4 7 9 10
2 4 6 8 10
2 4 5 8 9
2 3 8 9 10
2 3 6 7 10
2 3 4 5 10
1 3 7 8 9
1 3 5 6 9
1 3 4 6 8
1 3 4 5 7
1 2 6 8 9
1 2 5 7 9
1 2 4 7 8
1 2 4 6 9
1 2 3 5 8
how to write the codes for the function search(), copy() and reset() for stack of plates
i made the jar file of my java se application and tried to run on the another system where java was not installed so it showed me .rar file instead of .jar file what could be the reason behind that?
Write a program that outputs n numbers from two sequences turn by turn and each number in its own line (2*n numbers in total). The first sequence is a, a+2, a+4, ... and the second b, b+5, b+10, ... Variables n, a and b have already been declared and should be used in your program code. For example if a = 4 and b = 7, the program should output:
4
7
6
12
8
17
...
Do not write main method. Just the necessary code lines


import java.util.Random;

public class Test{
public static void main(String[] args){
Random r = new Random();
r.setSeed(Long.parseLong(args[0]));
int n = r.nextInt(100) + 100;
int a = r.nextInt(20) + 10;
int b = r.nextInt(20) + 10;
Write the body of method called maxFrequency:

public static char maxFrequency(String s){

which takes a string (length >=1) as parameter (containing characters from a to z; only small caps), calculates frequencies of characters in the string and returns the character with maximum frequency. For example, if the parameter string is "abcabcabca", the method returns 'a'.
Write the body of method getRange:

public static int getRange(int[] a){

which takes an array of integers as parameter and counts the range from the array. For example, if the parameter array holds values {2,5,-4,8,3}, the getRange method returns 12.
Need to write a method, that takes an array of integers, an integer index, and an integer value. The method should set the array element with the specified index to the specified value.

My code: int setElement(int[]array) {
int key;
for(int i=0; i<array.length; i++) {
if(array[i] == key)
return i;
}
return key;
}
think it is not quite right...
my project is 'online address book'. in java. so do i have to learn html ?
also i have the 'address book' program in java but i dont know how to make it online?
so plz help.
LATEST TUTORIALS
APPROVED BY CLIENTS