Results 1 to 5 of 5
  1. #1
    addy is offline Member
    Join Date
    Jan 2012
    Posts
    3
    Rep Power
    0

    Post Simple but challenging search form in java... i shucked out!!

    First Field area in which we paste our content....lyk

    a 1-10
    b 11-20
    c 21-30
    d 31-40

    Second Field Label in which i type one number..lyk

    27

    Third button is "Search"
    if i click on it the second field shows the result as " c "..

    i dont have to mention first as
    a 1,2,3.... 10 only as a 1-10

    How can we do this please help me out!!!! i m very bad in JAVA...!!

  2. #2
    clydedoris is offline Member
    Join Date
    Feb 2010
    Posts
    80
    Rep Power
    0

    Default Re: Simple but challenging search form in java... i shucked out!!

    wrong forum, man.

    anyway, just do a comparison. here is my sudo code:

    Java Code:
    if content_of_field2 >30, then d
    else if content_of_field2 >20, then c
    else if content_of_field2 >10, then b
    else, a
    [why are you annoyed with my sig?]

  3. #3
    addy is offline Member
    Join Date
    Jan 2012
    Posts
    3
    Rep Power
    0

    Default Re: Simple but challenging search form in java... i shucked out!!

    No man!! this is not so easy!!
    i m telecom guy so may b i have to go through fully discription to you!!!

    First Field!!
    i have to paste some details lyk..

    0UPD1 UPD1-0&&-31
    1UPD1 UPD1-32&&-63
    2UPD1 UPD1-64&&-95
    3UPD1 UPD1-96&&-127
    4UPD1 UPD1-128&&-159
    5UPD1 UPD1-160&&-191
    6UPD1 UPD1-192&&-223
    7UPD1 UPD1-224&&-255
    8UPD1 UPD1-256&&-287
    9UPD1 UPD1-288&&-319
    10UPD1 UPD1-320&&-351
    11UPD1 UPD1-352&&-383
    12UPD1 UPD1-384&&-415
    13UPD1 UPD1-416&&-447
    14UPD1 UPD1-448&&-479
    15UPD1 UPD1-480&&-511
    16UPD1 UPD1-512&&-543
    17UPD1 UPD1-544&&-575
    18UPD1 UPD1-576&&-607
    19UPD1 UPD1-608&&-639
    20UPD1 UPD1-640&&-671
    21UPD1 UPD1-672&&-703
    22UPD1 UPD1-704&&-735
    23UPD1 UPD1-736&&-767
    24UPD1 UPD1-768&&-799
    25UPD1 UPD1-800&&-831
    26UPD1 UPD1-832&&-863
    27UPD1 UPD1-864&&-895
    28UPD1 UPD1-896&&-927
    29UPD1 UPD1-928&&-959
    30UPD1 UPD1-960&&-991
    31UPD1 UPD1-992&&-1023
    32UPD1 UPD1-1024&&-1055
    33UPD1 UPD1-1056&&-1087
    34UPD1 UPD1-1088&&-1119
    35UPD1 UPD1-1120&&-1151
    36UPD1 UPD1-1152&&-1183
    37UPD1 UPD1-1184&&-1215
    38UPD1 UPD1-1216&&-1247
    39UPD1 UPD1-1248&&-1279
    40UPD1 UPD1-1280&&-1311
    41UPD1 UPD1-1312&&-1343
    42UPD1 UPD1-1344&&-1375
    43UPD1 UPD1-1376&&-1407
    44UPD1 UPD1-1408&&-1439
    45UPD1 UPD1-1440&&-1471
    46UPD1 UPD1-1472&&-1503
    47UPD1 UPD1-1504&&-1535
    48UPD1 UPD1-1536&&-1567
    49UPD1 UPD1-1568&&-1599
    50UPD1 UPD1-1600&&-1631

    this is very long list...

    in second label i have to put one number lyk...
    1455
    so ans comes in 2nd after search button click is " 45UPD1 "
    now how to do that.. dis list change as many time... but GP is thr in series of 31!!

  4. #4
    addy is offline Member
    Join Date
    Jan 2012
    Posts
    3
    Rep Power
    0

    Default Re: Simple but challenging search form in java... i shucked out!!

    now i think so u got ma problem!!!

  5. #5
    clydedoris is offline Member
    Join Date
    Feb 2010
    Posts
    80
    Rep Power
    0

    Default Re: Simple but challenging search form in java... i shucked out!!

    Hi,

    Is it definite that the value are in that succession and with that range?or is it random when you paste it?

Similar Threads

  1. New to java, challenging myself. But now I need help!
    By instinctx in forum New To Java
    Replies: 10
    Last Post: 10-26-2011, 02:42 PM
  2. Multi field search query form
    By ismet in forum New To Java
    Replies: 5
    Last Post: 03-09-2011, 08:34 AM
  3. Replies: 24
    Last Post: 07-29-2008, 04:04 PM
  4. Replies: 0
    Last Post: 04-04-2008, 09:36 AM
  5. Java Search Form
    By djcottrell in forum New To Java
    Replies: 1
    Last Post: 12-28-2007, 07:47 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •