Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8880981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:15:24+00:00 2026-06-14T20:15:24+00:00

This is homework for a class I am taking. So I do not expect

  • 0

This is homework for a class I am taking. So I do not expect anyone to write code for me, just guidance for pseudo code is fantastic 🙂

So I have been given a main method by my teacher. This method creates an array of objects, sorts them into alphabetical order, then calls another method with “System.out.println(loans[0].Schedule());”. This method should print out a schedule of that loan. What it is is kinda irrelevant, so I won’t go into detail about it, but the method has a 2D array in it.

As you may know, the Schedule method cannot be void (I don’t no why, it just gives me an error). So I tried making it “public String[][] Schedule()”, but my teacher said that will not work since the way it is being called, “System.out.println(loans[0].Schedule());”, println cannot handle printing a full 2D array.

Does anyone have any alternatives? All help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:15:25+00:00Added an answer on June 14, 2026 at 8:15 pm

    If you are calling it like you note above, System.out.println(loans[0].schedule());, then the schedule() method must return a String, not an array of String, not a 2-D array of String, but a single String since that is what println is expecting (either that or an object that has a decent toString() method override, but that’s the subject of another discussion).

    Note that the schedule() method should begin with a lower-case letter to comply with Java naming conventions.

    Note also that the reason that schedule() cannot return void is because it has to return an object for the println(...) method to print.

    For more details regarding this answer, you may want to give more details about your problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is homework...I'm not asking for answers, I just have a bug I'm not
(Before anyone says anything Yes this was homework but i have already turned it
I got this exercise, is not a homework , I just trying to solve:
This is homework, not going to lie. I need to write a program which
I am currently taking a class which is incorporating a topic I have not
(This is not a CS class homework, even if it looks like one) I'm
EDIT This is homework so no straight up code please. Just hints, thank you!
I'm not asking for anyone to do this homework for me, but I bring
First of all this is homework. I have been trying to get rid of
This is homework. Beginning Java class. Still wrapping my head around this stuff. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.