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

In java i know who to get letters from a string. String first = firstName.substring(0,3); This will her first three letters. But how do i get letters starting from 2nd letter to end assuming there is a 2nd letter and onward. Some thing like this String first = firstName.substring(2,end); but the end should be replaced with what?? Thanks
Write a Java program that prompts the user to enter a security code that matches a specific pattern. Your program must approve the user's entry.. Here is the pattern:
A lower case character, an upper case character, a lower case character, an upper case character, 3 or 4 digits, 1 or 2 lower case letters, 2 upper case characters, 1 digit.
Class Person has instance data members (all private) String fullName, char gender, int age. has a public static int variable named numFriends with an initial value of zero. has a constructor that will be used to make a Person object and assign values to its data members, and increment numFriends. has getters and setters for all three instance data members. has a toString() method that returns a string displaying the state of a Person instance.
Write a java method that repeatedly selects and removes a random entry from an array until the array holds no more entries.
I have a JFrame class TaskPane which contains jPanel2 and addButton. And jPanel2 in its turn contain taskPaneContainer. When we click addButton it adds dynamic Menu to jPanel2, for example Menu 1, Menu 2,... Every Menu consist Item and Delete Button, for example, Menu 1->Item1,Delete; Menu 2->Item2,Delete etc. I would like to ask when I added 3 Menu, i.e. Menu 1 [Item1], Menu 2 [Item2], Menu 3 [Item3], how can I get all actionCommand of Item Button, i.e. 1, 2, 3?
1.what is java..??
2.difference between database and database management.??
Write a method named sumInts that can take a variable number of int arguments and return the sum of these arguments. The ints to be summed up must be entered as command line arguments. Command line arguments can be simulated in Eclipse. Watch the video. In the main method, display the ints that were entered on the command line. Then execute sumInts and display the sum it returns.
Use a for loop to generate an array of ten random integers, all in the range from 100 to 200, inclusive. Use the Arrays class to both sort and display the entire array. Next, pass the array as the sole argument to a method that doubles each element of the array and then returns the array. Use a foreach loop to show all elements in the returned array on one line separated by a single space. This latter loop should also determine the sum of all elements in the returned array.
Write a class named Distance that contains the following two methods, then write a test program named TestDistance that uses just one loop to generate the table below. TestDistance should run both statiic methods below in the loop.
Write a program that generates a table showing the sine, cosine, and tangent for angles from 0 to 90 degrees. Each line in the table should increment the angle by 5 degrees. Include column headings.
LATEST TUTORIALS
APPROVED BY CLIENTS