Title: Fix 2D array being passed to Arrays.fill in FloydWarshall · Issue #2009 · TheAlgorithms/Java · GitHub
Open Graph Title: Fix 2D array being passed to Arrays.fill in FloydWarshall · Issue #2009 · TheAlgorithms/Java
X Title: Fix 2D array being passed to Arrays.fill in FloydWarshall · Issue #2009 · TheAlgorithms/Java
Description: Here an attempt is being made to pass a 2D array to Arrays.fill(). This is not correct as Arrays.fill() accepts a single dimensional array. I would like to fix this bug myself if that is ok Test case describing the bug: Try to run FloydW...
Open Graph Description: Here an attempt is being made to pass a 2D array to Arrays.fill(). This is not correct as Arrays.fill() accepts a single dimensional array. I would like to fix this bug myself if that is ok Test ca...
X Description: Here an attempt is being made to pass a 2D array to Arrays.fill(). This is not correct as Arrays.fill() accepts a single dimensional array. I would like to fix this bug myself if that is ok Test ca...
Opengraph URL: https://github.com/TheAlgorithms/Java/issues/2009
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix 2D array being passed to Arrays.fill in FloydWarshall","articleBody":"[Here](https://github.com/TheAlgorithms/Java/blob/master/DataStructures/Graphs/FloydWarshall.java#L17) an attempt is being made to pass a 2D array to Arrays.fill().\r\nThis is not correct as Arrays.fill() accepts a single dimensional array.\r\n\r\nI would like to fix this bug myself if that is ok\r\n\r\nTest case describing the bug:\r\nTry to run FloydWarshall.java with legitimate input\r\n\r\nExpected behavior:\r\nSucceeds\r\n\r\nActual behavior:\r\njava.lang.ArrayStoreException: java.lang.Integer\r\n\tat java.base/java.util.Arrays.fill(Arrays.java:3639)","author":{"url":"https://github.com/ChenOst","@type":"Person","name":"ChenOst"},"datePublished":"2020-11-04T16:29:28.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/2009/Java/issues/2009"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:84f814a0-52aa-ff2a-bf27-62cab5fed242 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E97E:2BBCB0:1056CAE:161BDA9:696ACE3C |
| html-safe-nonce | 75014a0646a6b77b2e1ce59f92138adbfb08e9ac9bf5e799b7fd65f859258577 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTdFOjJCQkNCMDoxMDU2Q0FFOjE2MUJEQTk6Njk2QUNFM0MiLCJ2aXNpdG9yX2lkIjoiMjY0NTcyNzQyNTQ5OTY4MDMxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 14ffa740fa1c0cb166d2d544c75de1a9df346701a467bf1fd73c518660fd1d82 |
| hovercard-subject-tag | issue:736252507 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TheAlgorithms/Java/2009/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4e7a10ee9a2080579d20f486e2a1898840f84e4065af68dad8617b9973864a7f/TheAlgorithms/Java/issues/2009 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4e7a10ee9a2080579d20f486e2a1898840f84e4065af68dad8617b9973864a7f/TheAlgorithms/Java/issues/2009 |
| og:image:alt | Here an attempt is being made to pass a 2D array to Arrays.fill(). This is not correct as Arrays.fill() accepts a single dimensional array. I would like to fix this bug myself if that is ok Test ca... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ChenOst |
| hostname | github.com |
| expected-hostname | github.com |
| None | c785f4ce187e9e7331257791b36ddee01625bb8e292a9b4fe2c16d4c006abf5d |
| turbo-cache-control | no-preview |
| go-import | github.com/TheAlgorithms/Java git https://github.com/TheAlgorithms/Java.git |
| octolytics-dimension-user_id | 20487725 |
| octolytics-dimension-user_login | TheAlgorithms |
| octolytics-dimension-repository_id | 63477660 |
| octolytics-dimension-repository_nwo | TheAlgorithms/Java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 63477660 |
| octolytics-dimension-repository_network_root_nwo | TheAlgorithms/Java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c718a376fcf780eb22089171adb84a543f660bf7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width