User Profile
Collapse
-
military time- convert to minutes
I can't figure out the formula to convert military time all to minutes. -
Thanks. I understand it alot better now.
How can I distinguish from even or odd number of characters so I can use "if" and "else." -
returning two middle characters, favoring the right
I need to return the middle 2 characters of a word, favoring the right.
so for example:
so far i have:Code:SevenMethods myFuns = new SevenMethods(); assertEquals("34", myFuns.middleTwo("12345"));
...Code:public String middleTwo(String arg) { int middle = arg.length() / 2; int middle2 = middle / 2; String middleTwo = "" + arg.charAt(middle2)
No activity results to display
Show More
Leave a comment: