06/05/20

NEED HELP ASAP!!!

Design a class that holds the following personal data: name, address, age, and phone number. Write appropriate accessor and mutator methods. Also, design a program that creates three instances of... more

06/01/20

solution for this problem

Sum of Odd and Even DigitsProblem Statement :Write a java program to calculate the sum of odd and even digits in a number. The input consists of a single integer 'n' which corresponds to the given... more

Selection Sort - Java

Write a Java program to implement the selection sort algorithm in Java, input the following array and display the sorted on the screen. Write a function selectionsort(Arr,N), which sort the array... more

Computer Science Question

  what does a static modifier means, what types of methods should it appear in?

Computer Science Review Question

what code produces a reference copy, a shallow copy, and a deep copy?

I need some help with this Computer Science question

What does Random do? (Java) and in General

LinkedList Java

Imagine we have to create a Linked list with 5,8 as elements and at first before adding them head should pointed to null. And since 8 is the last element, next of 8 also should point to a null.How... more

Programming - Sedimentation App

Programming - Sedimentation App1.1 Problem StatementThe figure below shows a lake within which sediment, suspended in the water, rains down and slowly builds up on the lake floor. Obviously the... more

Using Flowgorithm

Design a program that prompts the user to enter a string , and displays the character that appears most frequently in the string.

Text analyzer & modifier (Java)

(1) Prompt the user to enter a string of their choosing. Output the string. (1 pt)Ex: Enter a sentence or phrase: The only thing we have to fear is fear itself. You entered: The only thing we have... more

Your program must define and call the following function. The function should return true if the input year is a leap year and false otherwise. (Java)

A year in the modern Gregorian Calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes... more

Given the interface please code the zip function

INTERFACE import java.util.function.BiFunction; interface NamedBiFunction extends java.util.function.BiFunction //nested interface that extends from java.util.function.BiFunction { ... more

05/12/19

Determine if a point is inside a triangle formed by 3 points with given latitude/longitude?

I have 3 points (lat, lon) that form a triangle. Using javascript, how can I find if a point is inside this triangle?

04/17/19

Is there anything like .NET's NotImplementedException in Java?

Is there anything like .NET's `NotImplementedException` in Java?

04/11/19

When would you use the Builder Pattern?

What are some *common*, *real world examples* of using the Builder Pattern? What does it buy you? Why not just use a Factory Pattern?

04/10/19

Safely casting long to int in Java?

What's the most idiomatic way in Java to verify that a cast from `long` to `int` does not lose any information? This is my current implementation: public static int safeLongToInt(long l) { int... more

Jasmine expect logic (expect A OR B)?

I need to set the test to succeed if one of the two expectations is met: expect(mySpy.mostRecentCall.args[0]).toEqual(jasmine.any(Number)); ... 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.