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 1071401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T20:42:37+00:00 2026-05-16T20:42:37+00:00

I’m relatively new to Java, so I have little to no idea where to

  • 0

I’m relatively new to Java, so I have little to no idea where to even start with this one. I’m writing a scheduling application using Java and google calendars. On my google account I have a bunch of calendars with people’s schedules on them. I need to access these calendars through java and insert the person’s free / busy information into arrays like so:

    //User 1
    int[][] swift_schedule = new int[5][6];
    //1 = busy, 0 = free

    //Monday
    swift_schedule[0][0] = 0;  //9-11
    swift_schedule[0][1] = 1;  //11-1
    swift_schedule[0][2] = 1;  //1-3
    swift_schedule[0][3] = 1;  //3-5
    swift_schedule[0][4] = 1;  //5-7
    swift_schedule[0][5] = 1;  //7-9
    //Tuesday
    swift_schedule[1][0] = 0; //9-11
    swift_schedule[1][1] = 0; //11-1
    swift_schedule[1][2] = 0; //1-3

    etc....

If I were using PHP, I would get a url for the XML feed and just parse the data out of it, but with JAVA I don’t even know where to start. Can anyone point me in the right direction? Tutorials, code snippets, and other hints would be greatly appreciated!

cheers,
Mike

  • 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-05-16T20:42:38+00:00Added an answer on May 16, 2026 at 8:42 pm

    You don’t have to do the parsing when there is a Java API for it, simply use it and query for the calendar events you want.

    With DateTime and CalendarQuery you can query for events in a specific time interval (your use case: to get events in a give day).

    CalendarQuery myQuery = new CalendarQuery(feedUrl);
    myQuery.setMinimumStartTime(DateTime.parseDateTime("2006-03-16T00:00:00"));
    myQuery.setMaximumStartTime(DateTime.parseDateTime("2006-03-24T23:59:59"));
    

    Google Calendar allows client
    applications to view and update
    calendar events in the form of Google
    Data API feeds. Your client
    application can use the Google
    Calendar Data API
    to create new
    events, edit or delete existing
    events, and query for events that
    match particular criteria.

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

Sidebar

Related Questions

No related questions found

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.