Comparing two slots of lecture of two different timetableCreating an interactive table for AndroidHow to store a lot of different timetables in MYSQL?Combine mysql records from a set date into a timetable?Database Design for Time Table GenerationStore school timetable values in databaseGenerate random blocks Timetable pythonWeek timetable: PHP in_array or jQuery pluginUniversity Timetable Scheduling Project using Genetic Algorithm (JAVA)Exponential complexity for Timetable Generating programConverting Datatype of table or timetable
What is a common way to tell if an academic is "above average," or outstanding in their field? Is their h-index (Hirsh index) one of them?
Huffman Code in C++
Primes in a Diamond
Efficient deletion of specific list entries
Determine if a grid contains another grid
Game artist computer workstation set-up – is this overkill?
How do I, as a DM, handle a party that decides to set up an ambush in a dungeon?
How did the Force make Luke hard to hit in the Battle of Yavin?
Can you figure out this language?
TIP120 Transistor + Solenoid Failing Randomly
Is there any other simpler way to draw the following cross section?
What is the meaning of 「隣のおじいさんは言いました」
Endgame puzzle: How to avoid stalemate and win?
Gerrymandering Puzzle - Rig the Election
Dimmer switch not connected to ground
Why would a military not separate its forces into different branches?
Can anyone identify this unknown 1988 PC card from The Palantir Corporation?
How can I obtain and work with a Platonic dodecahedron?
Does Thanos's ship land in the middle of the battlefield in "Avengers: Endgame"?
How do I download programs on Linux?
Two denim hijabs
Picking a theme as a discovery writer
While drilling into kitchen wall, hit a wire - any advice?
Class Not Passing SObject By Reference
Comparing two slots of lecture of two different timetable
Creating an interactive table for AndroidHow to store a lot of different timetables in MYSQL?Combine mysql records from a set date into a timetable?Database Design for Time Table GenerationStore school timetable values in databaseGenerate random blocks Timetable pythonWeek timetable: PHP in_array or jQuery pluginUniversity Timetable Scheduling Project using Genetic Algorithm (JAVA)Exponential complexity for Timetable Generating programConverting Datatype of table or timetable
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am crating a java based timetable generation app. It is an android application. The inputs from the user are subject name and professor name. Both values are stored in a 2D array tt1[][] . The same i have done for time table 2 and stored inputs in array tt2[][]. Now i want to create two time tables using this value. Timetable will be generated and displayed in gridview..First timetable will b generated that is not an issue, but for timetable 2 I want to compare each slot of timetable 1 with timetable 2. I m thinking of using if-else statement but its way too lengthy. Can you suggest something better? I have a created timetable 1 and the sample code is for timetable 2. For each slot of a day I am using if else statement and it is getting too length as there can be 10 slots in a single day. To generate for 6 days it will become 6×10 if-else statements
timetable
|
show 2 more comments
I am crating a java based timetable generation app. It is an android application. The inputs from the user are subject name and professor name. Both values are stored in a 2D array tt1[][] . The same i have done for time table 2 and stored inputs in array tt2[][]. Now i want to create two time tables using this value. Timetable will be generated and displayed in gridview..First timetable will b generated that is not an issue, but for timetable 2 I want to compare each slot of timetable 1 with timetable 2. I m thinking of using if-else statement but its way too lengthy. Can you suggest something better? I have a created timetable 1 and the sample code is for timetable 2. For each slot of a day I am using if else statement and it is getting too length as there can be 10 slots in a single day. To generate for 6 days it will become 6×10 if-else statements
timetable
1
First try out what you think is lengthy then share here if we can help to improve. Else there's another site called codereview.stackexchange.com you can post your length code there too to get it improved.
– Black Mamba
Mar 23 at 4:27
Thanks for your suggestion. I have edited my question can you please take a look at it?
– Humera Shaikh
Mar 23 at 5:09
It's better to post code instead of image. I think your approach is good just one thing you'll need to use == instead of = to compare inside the if condition rest you can try running your code and let the error be posted in the question
– Black Mamba
Mar 23 at 5:18
Okay..but cant something else be used instead of if-else statement
– Humera Shaikh
Mar 23 at 5:26
Simply use for loop you'll need two for loop to loop inside one array
– Black Mamba
Mar 23 at 5:37
|
show 2 more comments
I am crating a java based timetable generation app. It is an android application. The inputs from the user are subject name and professor name. Both values are stored in a 2D array tt1[][] . The same i have done for time table 2 and stored inputs in array tt2[][]. Now i want to create two time tables using this value. Timetable will be generated and displayed in gridview..First timetable will b generated that is not an issue, but for timetable 2 I want to compare each slot of timetable 1 with timetable 2. I m thinking of using if-else statement but its way too lengthy. Can you suggest something better? I have a created timetable 1 and the sample code is for timetable 2. For each slot of a day I am using if else statement and it is getting too length as there can be 10 slots in a single day. To generate for 6 days it will become 6×10 if-else statements
timetable
I am crating a java based timetable generation app. It is an android application. The inputs from the user are subject name and professor name. Both values are stored in a 2D array tt1[][] . The same i have done for time table 2 and stored inputs in array tt2[][]. Now i want to create two time tables using this value. Timetable will be generated and displayed in gridview..First timetable will b generated that is not an issue, but for timetable 2 I want to compare each slot of timetable 1 with timetable 2. I m thinking of using if-else statement but its way too lengthy. Can you suggest something better? I have a created timetable 1 and the sample code is for timetable 2. For each slot of a day I am using if else statement and it is getting too length as there can be 10 slots in a single day. To generate for 6 days it will become 6×10 if-else statements
timetable
timetable
edited Mar 23 at 5:08
Humera Shaikh
asked Mar 23 at 4:22
Humera ShaikhHumera Shaikh
14
14
1
First try out what you think is lengthy then share here if we can help to improve. Else there's another site called codereview.stackexchange.com you can post your length code there too to get it improved.
– Black Mamba
Mar 23 at 4:27
Thanks for your suggestion. I have edited my question can you please take a look at it?
– Humera Shaikh
Mar 23 at 5:09
It's better to post code instead of image. I think your approach is good just one thing you'll need to use == instead of = to compare inside the if condition rest you can try running your code and let the error be posted in the question
– Black Mamba
Mar 23 at 5:18
Okay..but cant something else be used instead of if-else statement
– Humera Shaikh
Mar 23 at 5:26
Simply use for loop you'll need two for loop to loop inside one array
– Black Mamba
Mar 23 at 5:37
|
show 2 more comments
1
First try out what you think is lengthy then share here if we can help to improve. Else there's another site called codereview.stackexchange.com you can post your length code there too to get it improved.
– Black Mamba
Mar 23 at 4:27
Thanks for your suggestion. I have edited my question can you please take a look at it?
– Humera Shaikh
Mar 23 at 5:09
It's better to post code instead of image. I think your approach is good just one thing you'll need to use == instead of = to compare inside the if condition rest you can try running your code and let the error be posted in the question
– Black Mamba
Mar 23 at 5:18
Okay..but cant something else be used instead of if-else statement
– Humera Shaikh
Mar 23 at 5:26
Simply use for loop you'll need two for loop to loop inside one array
– Black Mamba
Mar 23 at 5:37
1
1
First try out what you think is lengthy then share here if we can help to improve. Else there's another site called codereview.stackexchange.com you can post your length code there too to get it improved.
– Black Mamba
Mar 23 at 4:27
First try out what you think is lengthy then share here if we can help to improve. Else there's another site called codereview.stackexchange.com you can post your length code there too to get it improved.
– Black Mamba
Mar 23 at 4:27
Thanks for your suggestion. I have edited my question can you please take a look at it?
– Humera Shaikh
Mar 23 at 5:09
Thanks for your suggestion. I have edited my question can you please take a look at it?
– Humera Shaikh
Mar 23 at 5:09
It's better to post code instead of image. I think your approach is good just one thing you'll need to use == instead of = to compare inside the if condition rest you can try running your code and let the error be posted in the question
– Black Mamba
Mar 23 at 5:18
It's better to post code instead of image. I think your approach is good just one thing you'll need to use == instead of = to compare inside the if condition rest you can try running your code and let the error be posted in the question
– Black Mamba
Mar 23 at 5:18
Okay..but cant something else be used instead of if-else statement
– Humera Shaikh
Mar 23 at 5:26
Okay..but cant something else be used instead of if-else statement
– Humera Shaikh
Mar 23 at 5:26
Simply use for loop you'll need two for loop to loop inside one array
– Black Mamba
Mar 23 at 5:37
Simply use for loop you'll need two for loop to loop inside one array
– Black Mamba
Mar 23 at 5:37
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55310593%2fcomparing-two-slots-of-lecture-of-two-different-timetable%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55310593%2fcomparing-two-slots-of-lecture-of-two-different-timetable%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
First try out what you think is lengthy then share here if we can help to improve. Else there's another site called codereview.stackexchange.com you can post your length code there too to get it improved.
– Black Mamba
Mar 23 at 4:27
Thanks for your suggestion. I have edited my question can you please take a look at it?
– Humera Shaikh
Mar 23 at 5:09
It's better to post code instead of image. I think your approach is good just one thing you'll need to use == instead of = to compare inside the if condition rest you can try running your code and let the error be posted in the question
– Black Mamba
Mar 23 at 5:18
Okay..but cant something else be used instead of if-else statement
– Humera Shaikh
Mar 23 at 5:26
Simply use for loop you'll need two for loop to loop inside one array
– Black Mamba
Mar 23 at 5:37