Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import static java.lang.System.out;
- public class PrettyDates
- {
- //methods
- //nameFormat
- public static int nameFormat(int year, int month, int day)
- {
- System.out.println("asdfhadf");
- }
- //slashFormat
- public static int slashFormat(int year, int month, int day)
- {
- System.out.println("Asdasd");
- }
- //dashFormat
- public static int dashFormat(int year, int month, int day)
- {
- System.out.println("Asdkjas");
- }
- //given code below
- public static void printDate(int year, int month, int day)
- {
- System.out.println(nameFormat(year, month, day));
- System.out.println(slashFormat(year, month, day));
- System.out.println(dashFormat(year, month, day));
- System.out.println();
- }
- //date tests below
- public static void main(String[] args)
- {
- printDate(2004, 10, 4);
- printDate(2015, 1, 1);
- printDate(2013, 12, 31);
- }
- }
- There isn't much here, because I keep getting stuck at "Is the data type int or void? If I pass in 3 ints, how do I return 3 ints? Do I need to return 3 ints?" I know we aren't supposed to change the code you gave us, but are we passing the 3 ints into printDate or the functions we are building?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement