Cruz Castillo

Generation

generate functionTue, 06 Jun 2023

java program to add and print 5 times given hours, minutes and seconds.

public class AddTime { public static void main(String[] args) { int hours = 5; int minutes = 30; int seconds = 40; System.out.println("Added Hours, Minutes and Seconds: "+ add(hours, minutes, seconds)); } public static int add(int hours, int minutes, int seconds) { return hours + minutes + seconds; } }

Want to kickstart your project?Use the new AI Studio to create your code