In this lesson, you will learn how to develop functions in Java programming. You will discover how to use and create various types of functions, from methods and functions with parameters to functions that return values. Enhance your skills through practical exercises and master the art of functions in programming.
Explore the topics covered in the Functions lesson and enhance your programming skills by completing the included programming exercises.
Develop your Java skills by creating a program with greeting and farewell functions. Learn to execute methods effectively from the main function (Main).
Create a Java program that implements two methods for greeting and saying goodbye. The greeting method should have a text parameter.
Create a Java program that implements a function called 'isAlphabetic()' which takes a text parameter from the user and checks if the text contains alphabetic characters from 'a' to 'z', including both uppercase and lowercase.
Explore text manipulation in Java with this intermediate-level exercise. Implement the changeLetter() function to modify a character in a text. Learn practically and enhance your mastery in programming!
Create a Java program that implements a function called "sum" that returns the sum of two integer numbers passed as parameters.
Create a Java program that implements a function called IsNumber that receives a text parameter from the user and check if the text is a number or not.
Create a Java program that serves as a calculator with the ability to add, subtract, multiply, or divide.
Create a program in Java that implements a function called CountSpaces that receives as a parameter a text requested from the user.
Create a Java program that asks the user for a number and save it in a text string.
Create a new version of the program Main parameter calculator where you can return the following error codes from Main.
Create a Java program that implements a function called FindMinMax that receives three parameters, an array of real numbers and two real numbers.
Create a program in Java that implements a function called WriteCenteredUnderline that receives as a parameter a text requested from the user.
Create a Java program that asks the user for 5 integers to store them in an array of integers.
Create a Java program that implements a function called InvertString receive receive a text by parameter and display them in reverse order.
Create a Java program that implements a function called Double to calculate and return double an integer.
Create a Java program that implements a function to check if a string is a palindrome or not.
Create a program in Java that implements a function called SearchGreatestValue that receives as an parameter an array of 5 real numbers requested from the user.
Create a Java program that implements a function called Power and calculate the result of raising an integer to another number.
Create a Java program that implements a function called WriteTitle that writes a text centered on the screen, in capital letters, with additional spaces and with one line above and another below.
Discover all the lessons included in the Java programming course. Complete all the exercises and learn to program by programming.
Help us to share free knowledge and programming in the world.
Free programming course with practical exercises and solutions in C#. Start learning right now!
Take your Exercises C# lessons everywhere with our Android app. Download it now from Google Play
Own and third party cookies to improve our services. If you go on surfing, we will consider you accepting its use.