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;








0















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










share|improve this question



















  • 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

















0















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










share|improve this question



















  • 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













0












0








0








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










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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












  • 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












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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?