id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

dario.sonego@gmail.com > aggiungiMinuti
prev  |  next  |  chance

aggiungiMinuti - Il metodo ha 3 argomenti interi: ore, minuti, nMinuti. Si sommano nMinuti al tempo ore:minuti e si restituisce il tempo così ottenuto in un stringa in formato "ore:minuti". Per esempio, se a un tempo di 25 ore e 30 minuti sommiamo 70 minuti, otteniamo un tempo di 26 ore e 40 minuti, da scrivere "26m 40s".


aggiungiMinuti(1, 20, 30) → "1h 50m"
aggiungiMinuti(1, 20, -10) → "1h 10m"
aggiungiMinuti(1, 10, -65) → "0h 5m"

...Save, Compile, Run (ctrl-enter)

public String aggiungiMinuti(int ore, int minuti, int nMinuti) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 150

Copyright Nick Parlante 2017 - privacy