Dec 7, 2014 10:13 AM
(This post was last modified: May 2, 2017 07:41 AM by 31c6fe2dd1.)
Closed don't need this anymore.
|
Java
Closed don't need this anymore. |
|
Dec 7, 2014 10:13 AM
(This post was last modified: May 2, 2017 07:41 AM by 31c6fe2dd1.)
Closed don't need this anymore.
(Dec 7, 2014 11:03 AM)MrOrang Wrote: I'm currently on my phone but I would get all childs from the tr tag with class="odd". Then get all td tags that contain class="value" and pick the first entry. I have done such things in the past but I'm on my phone right now. As there are 100 different Company names, half of them with the class odd, and half the class even, I'm not quite sure this would work- would there be a way to use the code as per above? Alternatively, if I am wrong and it does work, when you get to a computer could you please edit the code to do that, as I'm a bit of a java noob. Cheers
Dec 7, 2014 01:37 PM
(This post was last modified: Dec 7, 2014 01:39 PM by clrlslwi.)
(Dec 7, 2014 01:37 PM)clrlslwi Wrote: http://pastebin.com/wv4mWcPY You sir, are awesome. As a side note, would you recommend a way to do this with the other 99 companies- should I just copy and paste, changing where necessary for each item, or is there a quicker way? Either way, thank you so much, I appreciate it immensely. (Dec 7, 2014 03:18 PM)31c6fe2dd1 Wrote: As a side note, would you recommend a way to do this with the other 99 companies- should I just copy and paste, changing where necessary for each item, or is there a quicker way? I'm not entirely sure what you mean, but this will print the value for every (odd classed) company on the page: http://pastebin.com/PYE0cQR6 (Dec 7, 2014 03:23 PM)clrlslwi Wrote: I'm not entirely sure what you mean, but this will print the value for every (odd classed) company on the page: Is there a way to set strings for individual data values? Eg String a = 300.59 String b = 204.29 For example, so then I can compare values, such as 'a' and 'b'? (Dec 7, 2014 03:27 PM)31c6fe2dd1 Wrote: Is there a way to set strings for individual data values? I'm.. still not understanding what you're trying to do. You can message me your skype name (assuming you have skype), and I'll give you more in depth help. (Dec 7, 2014 03:27 PM)31c6fe2dd1 Wrote: Is there a way to set strings for individual data values? Code String a = "" + 300.59;But why would you? ![]() Puzzle level: 2/5 (Dec 7, 2014 05:16 PM)nOrr Wrote: It turns out he actually wanted to save the values, and check for changes over time. I'm really not sure how it came out like that. |
|
|
| Possibly Related Threads... | |||
| Thread / Author | Replies | Views | Last Post |
| [C#] by _CASP3R_Jan 5, 2019 12:05 PM | 9 | 303 |
Jan 5, 2019 12:05 PM Last Post: _CASP3R_ |
| [Python] by DumGraphixSep 23, 2016 04:59 PM | 0 | 110 |
Sep 23, 2016 04:59 PM Last Post: DumGraphix |
| [C#] by ℓιℓ υzι νєятNov 18, 2015 02:52 AM | 5 | 198 |
Nov 18, 2015 02:52 AM Last Post: ImYourFather |