493 Answered Questions for the topic Java
10/09/21
Write a recursive method that checks if a string has two of the same characters in a row. The method should display the remaining string.
Sample Run
----jGRASP exec: java CharacterRepeat
Enter a string: hello
Checking hello...
Checking ello...
Checking llo...
true!
----jGRASP: operation complete.
10/07/21
Please help with Java code
How can I define a for loop for the following output:1+2 = 32+3 = 54+5 = 98+9 = 1716+17 = 3332+33 = 6564+65 = 129any help would be very appreciated
09/25/21
Writing Unit test for mutator
Writing unit tests for mutators are only slightly different from that of constructors. The steps used are:
Create an object with initial values.
Call the mutator method that will change the...
more
09/25/21
Removing an element from a circular linked list
Here I have my code that deletes a given integer value from a circular linked list:
public void remove(int item){
Node temp = tail.next; //Refers to the first index
Node...
more
Java
09/24/21
Interface, could someone help me solving this task. Thank you.
Create an interface called: CustomCalculationIt should have a method called: squareIt accepts an integer paremeterCreate another class called: ExecutorCIt should implement CustomCalculation...
more
Java Python
09/21/21
Python training
Java or Python?which is best??I studied at this tutor but didn't get placementhttps://www.tektaurus.com/course/python-programming-course/
09/16/21
Given the following method definitions for the Date class, identify the type of method (accessor or mutator),
Given the following method definitions for the Date class, identify the type of method (accessor or mutator), the return data type, if any, the explicit parameter data types, if any, and...
more
Java
09/16/21
help me make program
Create a program called "BUZZERS" that will input digits. Buzzers are computed according to the input. if the digit contains 0,6,7,5 it adds 1 and then otherwise it adds 2. Your input is from...
more
08/22/21
Not able to print the first element in an array (Inputed by user)
I am trying to print the types of vehicles that are being rented. The issue I'm currently having is that the print statement only prints the second type of input from the user.Here I have the do...
more
Java
08/21/21
Java programming
Create student class in Java with roll no, name, and address as the attribute. Also create methods to insert value in the attributes. Declare all the variables to be public. Also try inserting...
more
08/19/21
Java Code: Generating random numbers with Math.random() within a certain range. Math.random() range: 0.0 <= x < 1.
Math.random() range: 0.0 <= x < 1.
Generate a random integer "i" such that "i" is in the following range: 10 <= i < 20; 10 <= i <= 50.
Write an expression that returns '0' or...
more
08/18/21
Memory Operations and Arrays in ARM Assembly
Open the find_min_array.s file, and open it up in a text editor of your choice. Note that word processors (e.g., Microsoft Word, Pages, Google Docs) will probably not work for this purpose, as you...
more
08/16/21
Introduction to Branching in ARM Assembly
Open the factorial.s file, and open it up in a text editor of your choice. Note that word processors (e.g., Microsoft Word, Pages, Google Docs) will probably not work for this purpose, as you must...
more
08/15/21
JAVA HELP ASAP!!
Write a program that continues to ask to enter a passcode and compares it with a predetermined 4 digit integer:a) prompts the user to enter a # and checks every digit one by one. If the user enters...
more
08/15/21
JAVA HELP ASAP!!
Write a program to scan a text file and capitalize each word. To do that:
change the first letter of each word to Capital then
print the resulting text to the console.
08/04/21
Help with Java Q
Write a program with twice overloaded static method called area which returns a double value. The method should be in a separate class called CalcArea. The first overload takes in two double...
more
08/04/21
Help with Java Q
2) Write a java program which asks for 10 grades from user. Place the grades in an array called grades. Calculate the maximum , minimum and average using three static methods ...
more
08/04/21
Please help with Java Q
1) Create an array of double type and 10 elements long for your daily expenses. Store in the first position the value 60.0 (60 dollars to start with) and prompt user for expenses to enter in the...
more
08/02/21
Java programming finding radius of circle
Create a Java function which calculates the radius of a circle: 1. The function should take no arguments. 2. Ask the user to provide the area value of the circle. 3. Calculate the radius based on...
more
07/22/21
JavaScript Question
How do I put the output on the second line?Intended output(example)Enter·the·number·up·to·which·you·would·like·to·look·for·perfect·numbers:500↵Looking·for·perfect·numbers·from·1·to·500↵...
more
07/22/21
JavaScript Question
6.24 (Perfect Numbers) An integer number is said to be a perfect number if its factors, including 1 (but not the number itself), sum to the number. For example, 6 is a perfect number, because 6 = 1...
more
07/20/21
JavaScript Problem
5-15) (Triangle Printing Program) Write an application that displays the following patterns separately, one below the other. The use should be asked to enter an integer that will determine how...
more
07/20/21
JavaScript Question
(Triangle Printing Program) Write an application that displays the following patterns separately, one below the other. The use should be asked to enter an integer that will determine how many lines...
more
07/19/21
JavaScript Problem
Write an application that displays the following patterns separately, one below the other. The use should be asked to enter an integer that will determine how many lines of the pattern are printed...
more
Java Computer Programming
07/18/21
How to create a class in java?
Create a new file called Account.java and construct a class called Account, which models a simple bank account. It contains the following members:
Two private instance...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.