Complete this method to return the two String parameters combined (concatenated) together.
Search Results
Searching for: io
Individual Exercises
Write a Java statement to declare an integer variable with the name hours
that has an initial value of 7.
Complete this method to return the sum of the two parameters.
Create a print line that sums variable a and variable b.
Complete this method so it prints out the quotient of the two parameters.
Complete this method so it prints out the product of the two parameters.
Complete this method so it prints out the difference between the two parameters.
Write a function in Java called factorial(int n)
that will take a positive integer as input and returns its factorial as output. Your...
Write a function in Java called factorial(int n)
that will take a positive integer as input and returns its factorial as output. Your...
Write a function in Java called factorial(int n)
that will take a positive integer as input and returns its factorial as output. You will...
This method returns the value of the minimum element in the subsection of the array "y", starting at position "first" and ending at...
Based on three scores that the user inputs, display the average of the scores and the letter grade that is assigned fort he test score...
A magic date is one when written in the following format, the month times the date equals the year e.g. 6/10/60. Write code that figures...
Wilson’s Shipping Company charges the following rates:
Weight of Package
Rate per 500 Miles Shipped
2 pounds or less
$1.10
Over 2 lbs...
Replace the /* comparison */ comment with the appropriate expression that evaluates whether the variable first
is the same size or bigger...
Replace the /* comparison */ comment with the appropriate expression that evaluates whether the variable initial is either a lowercase or...
Complete the code so that it checks if the variable letter is a lowercase vowel (a, e, i, o, or u) and assigns true or false to the...
Complete the code so that the variable polarity is -1 when adding first and second is negative, but polarity is 1 when adding first and...
Given three variables called first, second and third. If third is less than the difference of first and second, then return third....
Given three integer variables called first, second and third, if second is less than first, return false. Otherwise, check if third lies...
Write a function called isOdd
that receives one integer and returns true
if that number is odd (has non-zero remainder when dividing by...
Write a function called count
that receives (A) a string and (B) a character, and returns a count of how many times the character is...
Write a function called countVowels
that receives a string
and returns the count of how many vowels it has, including a
,e
,i
,o
, and u
and...
Write a function called makeExcited
that receives a char
and permanently changes the value of it so that it becomes an exclamation mark (...
Write a function called punctuate
that receives a string
and permanently changes the value of that same string so that if there is a...