{"id":4900,"date":"2024-12-30T16:25:40","date_gmt":"2024-12-30T08:25:40","guid":{"rendered":"https:\/\/qaqaq.top\/?p=4900"},"modified":"2024-12-30T16:25:45","modified_gmt":"2024-12-30T08:25:45","slug":"%e5%b7%a5%e4%bd%9c%e6%97%b6%e9%81%87%e5%88%b0%e7%9a%84%e4%b8%80%e4%ba%9b%e5%b0%8f%e9%97%ae%e9%a2%982024-java","status":"publish","type":"post","link":"https:\/\/qaqaq.top\/?p=4900","title":{"rendered":"\u5de5\u4f5c\u65f6\u9047\u5230\u7684\u4e00\u4e9b\u5c0f\u95ee\u9898 2024-Java"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Java\uff1a\u65f6\u95f4\u5b57\u7b26\u4e32\u8f6c\u6362\u65f6\u95f4\u95ee\u9898<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">\u4ee3\u7801<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\"> &nbsp; &nbsp; public static void main(String[] args) {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;test test = new test();<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;test.bugFour();<br>\u200b<br> &nbsp;  }<br>\u200b<br>    private void bugFour() {<br> &nbsp; &nbsp; &nbsp; &nbsp;String iso8601String = \"2024-08-08T00:00:00Z\";<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");<br> &nbsp; &nbsp; &nbsp; &nbsp;Date date = null;<br> &nbsp; &nbsp; &nbsp; &nbsp;try {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;date = formatter.parse(iso8601String);<br> &nbsp; &nbsp; &nbsp;  } catch (ParseException e) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;throw new RuntimeException(e);<br> &nbsp; &nbsp; &nbsp;  }<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(date);<br> &nbsp;  }<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u7ed3\u679c<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/qaqaq.top\/wp-content\/uploads\/2024\/12\/image-5-1024x169.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"169\" data-original=\"https:\/\/qaqaq.top\/wp-content\/uploads\/2024\/12\/image-5-1024x169.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-4901\"  sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u539f\u56e0<\/h4>\n\n\n\n<p>\u9519\u8bef\u662f\u56e0\u4e3a\u5c1d\u8bd5\u89e3\u6790\u7684\u65e5\u671f\u5b57\u7b26\u4e32\u4e0e\u6307\u5b9a\u7684\u65e5\u671f\u683c\u5f0f\u4e0d\u5339\u914d\u3002\u9519\u8bef\u4fe1\u606f\u663e\u793a\u8bd5\u56fe\u89e3\u6790\u7684\u65e5\u671f\u5b57\u7b26\u4e32\u662f&#8221;2024-08-08T00:00:00Z&#8221;\uff0c\u8fd9\u662f\u4e00\u4e2aISO 8601\u683c\u5f0f\u7684\u65e5\u671f\u65f6\u95f4\u5b57\u7b26\u4e32\uff0c\u5b83\u5305\u542b\u4e86\u65e5\u671f\u548c\u65f6\u95f4\uff0c\u5e76\u4e14\u4ee5\u2019Z\u2019\u7ed3\u5c3e\uff0c\u8868\u793a\u8fd9\u662fUTC\u65f6\u95f4\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u89e3\u51b3<\/h4>\n\n\n\n<p>\u4f7f\u7528 ISO 8601\u683c\u5f0f\u89e3\u6790\u5668\u89e3\u6790\u8be5\u5b57\u7b26\u4e32<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> &nbsp; &nbsp; public static void main(String[] args) {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;test test = new test();<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;test.bugFive();<br> &nbsp; &nbsp; &nbsp; &nbsp;test.bugFour();<br>\u200b<br> &nbsp;  }<br>\u200b<br> &nbsp; &nbsp;\/**<br> &nbsp; &nbsp; * Java 7 \u65f6\u95f4\u5b57\u7b26\u4e32\u8f6c\u6362\u65f6\u95f4<br> &nbsp; &nbsp; *\/<br> &nbsp; &nbsp;private void bugFive() {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;String iso8601String = \"2024-08-08T00:00:00Z\";<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;\/\/ \u521b\u5efaISO 8601\u7684\u65e5\u671f\u65f6\u95f4\u683c\u5f0f\u89e3\u6790\u5668<br> &nbsp; &nbsp; &nbsp; &nbsp;SimpleDateFormat isoFormatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");<br> &nbsp; &nbsp; &nbsp; &nbsp;\/\/ \u8bbe\u7f6e\u65f6\u533a\u4e3aUTC\uff0c\u56e0\u4e3aISO 8601\u5b57\u7b26\u4e32\u9ed8\u8ba4\u662fUTC\u65f6\u95f4<br> &nbsp; &nbsp; &nbsp; &nbsp;isoFormatter.setTimeZone(TimeZone.getTimeZone(\"UTC\"));<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;\/\/ \u521b\u5efa\u76ee\u6807\u683c\u5f0f\u7684\u65e5\u671f\u65f6\u95f4\u683c\u5f0f\u89e3\u6790\u5668<br> &nbsp; &nbsp; &nbsp; &nbsp;SimpleDateFormat outputFormatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;Date date = null;<br> &nbsp; &nbsp; &nbsp; &nbsp;try {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;date = isoFormatter.parse(iso8601String);<br> &nbsp; &nbsp; &nbsp;  } catch (ParseException e) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;throw new RuntimeException(e);<br> &nbsp; &nbsp; &nbsp;  }<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;\/\/ \u683c\u5f0f\u5316\u4e3a\u76ee\u6807\u683c\u5f0f<br> &nbsp; &nbsp; &nbsp; &nbsp;String formattedDateTime = outputFormatter.format(date); \/\/\u5982\u679c\u8f93\u51fa\u4e3a Date \u683c\u5f0f\uff0c\u5219\u4e0d\u9700\u8981\u8fd9\u4e00\u6b65<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(date);<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(formattedDateTime);<br>\u200b<br> &nbsp;  }<br>\u200b<br> &nbsp; &nbsp;\/**<br> &nbsp; &nbsp; * Java 8 \u65f6\u95f4\u5b57\u7b26\u4e32\u8f6c\u6362\u65f6\u95f4<br> &nbsp; &nbsp; *\/<br> &nbsp; &nbsp;private void bugFour() {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;String iso8601String = \"2024-08-08T00:00:00Z\";<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;\/\/ \u521b\u5efa\u4e00\u4e2aDateTimeFormatter\u5bf9\u8c61\uff0c\u7528\u4e8e\u89e3\u6790ISO 8601\u683c\u5f0f\u7684\u5b57\u7b26\u4e32<br> &nbsp; &nbsp; &nbsp; &nbsp;DateTimeFormatter isoFormatter = DateTimeFormatter.ISO_DATE_TIME;<br> &nbsp; &nbsp; &nbsp; &nbsp;\/\/ \u521b\u5efa\u4e00\u4e2aDateTimeFormatter\u5bf9\u8c61\uff0c\u7528\u4e8e\u683c\u5f0f\u5316\u65e5\u671f\u65f6\u95f4\u4e3a\"yyyy-MM-dd HH:mm:ss\"\u683c\u5f0f<br> &nbsp; &nbsp; &nbsp; &nbsp;DateTimeFormatter outputFormatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;\/\/ \u4f7f\u7528isoFormatter\u5c06\u5b57\u7b26\u4e32\u89e3\u6790\u4e3aZonedDateTime\u5bf9\u8c61<br> &nbsp; &nbsp; &nbsp; &nbsp;ZonedDateTime zonedDateTime = ZonedDateTime.parse(iso8601String, isoFormatter);<br> &nbsp; &nbsp; &nbsp; &nbsp;\/\/ \u5c06ZonedDateTime\u8f6c\u6362\u4e3aLocalDateTime<br> &nbsp; &nbsp; &nbsp; &nbsp;LocalDateTime localDateTime = zonedDateTime.toLocalDateTime();<br> &nbsp; &nbsp; &nbsp; &nbsp;\/\/ \u4f7f\u7528outputFormatter\u5c06LocalDateTime\u683c\u5f0f\u5316\u4e3a\u5b57\u7b26\u4e32<br> &nbsp; &nbsp; &nbsp; &nbsp;String formattedDateTime = localDateTime.format(outputFormatter);<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");<br> &nbsp; &nbsp; &nbsp; &nbsp;Date date = null;<br> &nbsp; &nbsp; &nbsp; &nbsp;try {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;date = formatter.parse(formattedDateTime);<br> &nbsp; &nbsp; &nbsp;  } catch (ParseException e) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;throw new RuntimeException(e);<br> &nbsp; &nbsp; &nbsp;  }<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(date);<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(formattedDateTime);<br>\u200b<br> &nbsp;  }<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u6ce8\u610f<\/h4>\n\n\n\n<p>\u6682\u65e0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java\uff1a\u4e0d\u80fd\u5728for\u548c\u589e\u5f3afor\u5faa\u73af\u4e2d\u8fdb\u884c\u5143\u7d20\u5220\u9664\uff0c\u4e0d\u7136\u4f1a\u5f15\u53d1\u6570\u636e\u9519\u4e71<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">\u4ee3\u7801<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\"> &nbsp; &nbsp;public static void main(String[] args) {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;test test = new test();<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;test.bugThree();<br>\u200b<br> &nbsp;  }<br>\u200b<br>    private void bugThree() {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;List&lt;Map&lt;String, Object&gt;&gt; list = new ArrayList&lt;&gt;();<br> &nbsp; &nbsp; &nbsp; &nbsp;HashMap&lt;String, Object&gt; map = new HashMap&lt;&gt;();<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"1\", \"1\");<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"2\", \"2\");<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"3\", \"3\");<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"4\", \"4\");<br> &nbsp; &nbsp; &nbsp; &nbsp;list.add(map);<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(list);<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;for (Map&lt;String, Object&gt; demo : list) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;list.remove(demo);<br> &nbsp; &nbsp; &nbsp;  }<br>\u200b<br> &nbsp;  }<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u7ed3\u679c<\/h4>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/qaqaq.top\/wp-content\/uploads\/2024\/12\/image-6.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1006\" height=\"263\" data-original=\"https:\/\/qaqaq.top\/wp-content\/uploads\/2024\/12\/image-6.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-4902\"  sizes=\"(max-width: 1006px) 100vw, 1006px\" \/><\/div><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u539f\u56e0<\/h4>\n\n\n\n<p>\u5728 Java \u4e2d\uff0c\u5982\u679c\u60f3\u5728\u5faa\u73af\u4e2d\u5220\u9664\u5217\u8868\u4e2d\u7684\u5143\u7d20\uff0c\u9700\u8981\u7279\u522b\u5c0f\u5fc3\uff0c\u56e0\u4e3a\u76f4\u63a5\u5728\u5faa\u73af\u4e2d\u4f7f\u7528 <code>remove()<\/code> \u65b9\u6cd5\u53ef\u80fd\u4f1a\u5bfc\u81f4 <code>ConcurrentModificationException<\/code> \u5f02\u5e38\u3002\u8fd9\u662f\u56e0\u4e3a\u5217\u8868\u5728\u8fed\u4ee3\u8fc7\u7a0b\u4e2d\u88ab\u4fee\u6539\u4e86\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u89e3\u51b3<\/h4>\n\n\n\n<p>\u6709\u4e24\u79cd\u63a8\u8350\u7684\u65b9\u6cd5\u6765\u5b89\u5168\u5730\u5220\u9664\u5217\u8868\u4e2d\u7684\u5143\u7d20\uff1a<\/p>\n\n\n\n<p>\u65b9\u6cd5 1: \u4f7f\u7528\u8fed\u4ee3\u5668 (<code>Iterator<\/code>)<\/p>\n\n\n\n<p>\u4f7f\u7528\u8fed\u4ee3\u5668\u53ef\u4ee5\u5b89\u5168\u5730\u5220\u9664\u5217\u8868\u4e2d\u7684\u5143\u7d20\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4f1a\u5f15\u53d1 <code>ConcurrentModificationException<\/code>\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import java.util.ArrayList;<br>import java.util.Iterator;<br>\u200b<br>public class Main {<br> &nbsp; &nbsp;public static void main(String[] args) {<br> &nbsp; &nbsp; &nbsp; &nbsp;ArrayList&lt;Integer&gt; list = new ArrayList&lt;&gt;();<br> &nbsp; &nbsp; &nbsp; &nbsp;list.add(1);<br> &nbsp; &nbsp; &nbsp; &nbsp;list.add(2);<br> &nbsp; &nbsp; &nbsp; &nbsp;list.add(3);<br> &nbsp; &nbsp; &nbsp; &nbsp;list.add(4);<br> &nbsp; &nbsp; &nbsp; &nbsp;list.add(5);<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;\/\/ \u4f7f\u7528\u8fed\u4ee3\u5668\u5220\u9664\u503c\u4e3a\u5076\u6570\u7684\u5143\u7d20<br> &nbsp; &nbsp; &nbsp; &nbsp;Iterator&lt;Integer&gt; iterator = list.iterator();<br> &nbsp; &nbsp; &nbsp; &nbsp;while (iterator.hasNext()) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Integer element = iterator.next();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (element % 2 == 0) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iterator.remove(); \/\/ \u4f7f\u7528\u8fed\u4ee3\u5668\u7684 remove() \u65b9\u6cd5<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br> &nbsp; &nbsp; &nbsp;  }<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(list); \/\/ \u8f93\u51fa: [1, 3, 5]<br> &nbsp;  }<br>}<\/pre>\n\n\n\n<p>\u65b9\u6cd5 2: \u4f7f\u7528\u5012\u5e8f\u5faa\u73af (<code>for<\/code> \u5faa\u73af)<\/p>\n\n\n\n<p>\u4f7f\u7528\u5012\u5e8f\u5faa\u73af\u53ef\u4ee5\u4ece\u5217\u8868\u7684\u672b\u5c3e\u5f00\u59cb\u5220\u9664\u5143\u7d20\uff0c\u8fd9\u6837\u4e0d\u4f1a\u5f71\u54cd\u524d\u9762\u5143\u7d20\u7684\u7d22\u5f15\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">import java.util.ArrayList;<br>\u200b<br>public class Main {<br> &nbsp; &nbsp;public static void main(String[] args) {<br> &nbsp; &nbsp; &nbsp; &nbsp;ArrayList&lt;Integer&gt; list = new ArrayList&lt;&gt;();<br> &nbsp; &nbsp; &nbsp; &nbsp;list.add(1);<br> &nbsp; &nbsp; &nbsp; &nbsp;list.add(2);<br> &nbsp; &nbsp; &nbsp; &nbsp;list.add(3);<br> &nbsp; &nbsp; &nbsp; &nbsp;list.add(4);<br> &nbsp; &nbsp; &nbsp; &nbsp;list.add(5);<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;\/\/ \u4f7f\u7528\u5012\u5e8f\u5faa\u73af\u5220\u9664\u503c\u4e3a\u5076\u6570\u7684\u5143\u7d20<br> &nbsp; &nbsp; &nbsp; &nbsp;for (int i = list.size() - 1; i &gt;= 0; i--) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Integer element = list.get(i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if (element % 2 == 0) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;list.remove(i); \/\/ \u4f7f\u7528\u7d22\u5f15\u5220\u9664<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br> &nbsp; &nbsp; &nbsp;  }<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(list); \/\/ \u8f93\u51fa: [1, 3, 5]<br> &nbsp;  }<br>}<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u6ce8\u610f<\/h4>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u8fed\u4ee3\u5668\u6ce8\u610f\u4e8b\u9879\n<ul class=\"wp-block-list\">\n<li>\u4f7f\u7528\u8fed\u4ee3\u5668\u5220\u9664\u5143\u7d20\u65f6\uff0c\u5fc5\u987b\u4f7f\u7528 <code>iterator.remove()<\/code> \u65b9\u6cd5\uff0c\u800c\u4e0d\u662f <code>list.remove()<\/code>\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u5012\u5e8f\u5faa\u73af\n<ul class=\"wp-block-list\">\n<li>\u5982\u679c\u786e\u5b9a\u4e0d\u4f1a\u5220\u9664\u5217\u8868\u7684\u7b2c\u4e00\u4e2a\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528\u5012\u5e8f\u5faa\u73af\uff0c\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u7d22\u5f15\u504f\u79fb\u7684\u95ee\u9898\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Java\uff1alist\u4e2d\u589e\u52a0\u7684put\u66f4\u65b0\u8fc7\u7684map\u7684\u503c\u662f\u76f8\u540c\u7684<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">\u4ee3\u7801<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\"> &nbsp; &nbsp;public static void main(String[] args) {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;test test = new test();<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;test.bugOne();<br>\u200b<br> &nbsp;  }<br>\u200b<br> &nbsp; &nbsp;private void bugOne() {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;List&lt;Map&lt;String, Object&gt;&gt; list = new ArrayList&lt;&gt;();<br> &nbsp; &nbsp; &nbsp; &nbsp;HashMap&lt;String, Object&gt; map = new HashMap&lt;&gt;();<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"1\", \"1\");<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"2\", \"2\");<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"3\", \"3\");<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"4\", \"4\");<br> &nbsp; &nbsp; &nbsp; &nbsp;list.add(map);<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(list);<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;for (int i = 0; i &lt; 2; i++) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"1\", \"11\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"2\", \"22\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"3\", \"33\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"4\", \"44\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;list.add(map);<br> &nbsp; &nbsp; &nbsp;  }<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(list);<br> &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp;  }<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u7ed3\u679c<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/qaqaq.top\/wp-content\/uploads\/2024\/12\/image-7-1024x201.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"201\" data-original=\"https:\/\/qaqaq.top\/wp-content\/uploads\/2024\/12\/image-7-1024x201.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-4903\"  sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u539f\u56e0<\/h4>\n\n\n\n<p>\u5728 Java \u4e2d\uff0c\u200c\u5982\u679c\u5c06\u76f8\u540c\u7684 Map \u5bf9\u8c61\u591a\u6b21\u6dfb\u52a0\u5230 Lis t\u96c6\u5408\u4e2d\uff0c\u200c\u5219\u5728 List \u96c6\u5408\u4e2d\u5b58\u50a8\u7684 Map \u5bf9\u8c61\u5b9e\u9645\u4e0a\u662f\u540c\u4e00\u4e2a\u5bf9\u8c61\u3002<\/p>\n\n\n\n<p>\u8fd9\u662f\u56e0\u4e3a\u5728 Java \u4e2d\uff0c\u901a\u8fc7\u53d8\u91cf\u548c\u96c6\u5408\u4e2d\u4fdd\u5b58\u7684\u662f\u5bf9\u8c61\u7684\u5f15\u7528\uff0c\u200c\u800c\u4e0d\u662f\u5bf9\u8c61\u672c\u8eab\u7684\u62f7\u8d1d\u3002\u200c<\/p>\n\n\n\n<p>\u5f53\u4f7f\u7528\u76f8\u540c\u7684\u5bf9\u8c61\u4f5c\u4e3a\u53c2\u6570\u591a\u6b21\u8c03\u7528\u65b9\u6cd5\u65f6\uff0c\u200c\u5b9e\u9645\u4e0a\u662f\u591a\u6b21\u4f7f\u7528\u4e86\u540c\u4e00\u4e2a\u5bf9\u8c61\u3002\u200c<\/p>\n\n\n\n<p>\u56e0\u6b64\uff0c\u200c\u5982\u679c\u66f4\u6539\u5176\u4e2d\u4e00\u4e2a Map \u5bf9\u8c61\u7684\u503c\uff0c\u200c\u6240\u6709\u5728 List \u96c6\u5408\u4e2d\u5b58\u50a8\u7684 Map \u5bf9\u8c61\u90fd\u5c06\u53cd\u6620\u8fd9\u4e9b\u66f4\u6539\uff0c\u56e0\u4e3a\u5b83\u4eec\u5b9e\u9645\u4e0a\u662f\u540c\u4e00\u4e2a\u5bf9\u8c61\u3002\u200c<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u89e3\u51b3<\/h4>\n\n\n\n<p>\u91cd\u65b0 New \u4e00\u4e2a\u65b0\u7684 Map \u5bf9\u8c61\u7528\u6765\u5b58\u50a8\u6570\u636e<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> &nbsp; &nbsp;public static void main(String[] args) {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;test test = new test();<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;test.bugOne();<br>\u200b<br> &nbsp;  }<br>\u200b<br> &nbsp; &nbsp;private void bugOne() {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;List&lt;Map&lt;String, Object&gt;&gt; list = new ArrayList&lt;&gt;();<br> &nbsp; &nbsp; &nbsp; &nbsp;HashMap&lt;String, Object&gt; map = new HashMap&lt;&gt;();<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"1\", \"1\");<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"2\", \"2\");<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"3\", \"3\");<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"4\", \"4\");<br> &nbsp; &nbsp; &nbsp; &nbsp;list.add(map);<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(list);<br>\u200b<br>\/\/ &nbsp; &nbsp; &nbsp;  for (int i = 0; i &lt; 2; i++) {<br>\/\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  map.put(\"1\", \"11\" + i);<br>\/\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  map.put(\"2\", \"22\" + i);<br>\/\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  map.put(\"3\", \"33\" + i);<br>\/\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  map.put(\"4\", \"44\" + i);<br>\/\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  list.add(map);<br>\/\/ &nbsp; &nbsp; &nbsp;  }<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;for (int i = 0; i &lt; 2; i++) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Map&lt;String, Object&gt; iMap = new HashMap&lt;&gt;();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iMap.put(\"1\", \"11\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iMap.put(\"2\", \"22\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iMap.put(\"3\", \"33\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iMap.put(\"4\", \"44\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;list.add(iMap);<br> &nbsp; &nbsp; &nbsp;  }<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(list);<br> &nbsp; &nbsp; &nbsp; &nbsp;<br> &nbsp;  }<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u6ce8\u610f<\/h4>\n\n\n\n<p>\u6682\u65e0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Java\uff1aConcurrentModificationException\u5f02\u5e38<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">\u4ee3\u7801<\/h4>\n\n\n\n<pre class=\"wp-block-preformatted\"> &nbsp; &nbsp;public static void main(String[] args) {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;test test = new test();<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;test.bugTwo();<br>\u200b<br> &nbsp;  }<br>\u200b<br> &nbsp; &nbsp;private void bugTwo() {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;List&lt;Map&lt;String, Object&gt;&gt; list = new ArrayList&lt;&gt;();<br> &nbsp; &nbsp; &nbsp; &nbsp;HashMap&lt;String, Object&gt; map = new HashMap&lt;&gt;();<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"1\", \"1\");<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"2\", \"2\");<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"3\", \"3\");<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"4\", \"4\");<br> &nbsp; &nbsp; &nbsp; &nbsp;list.add(map);<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(list);<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;for (Map&lt;String, Object&gt; demo : list) {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (int i = 0; i &lt; 2; i++) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Map&lt;String, Object&gt; iMap = new HashMap&lt;&gt;();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iMap.put(\"1\", \"11\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iMap.put(\"2\", \"22\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iMap.put(\"3\", \"33\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iMap.put(\"4\", \"44\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;list.add(map);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br>\u200b<br> &nbsp; &nbsp; &nbsp;  }<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(list);<br>\u200b<br> &nbsp;  }<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u7ed3\u679c<\/h4>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/qaqaq.top\/wp-content\/uploads\/2024\/12\/image-8-1024x185.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"185\" data-original=\"https:\/\/qaqaq.top\/wp-content\/uploads\/2024\/12\/image-8-1024x185.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-4904\"  sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/div><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">\u539f\u56e0<\/h4>\n\n\n\n<p>ConcurrentModificationException \u662f Java \u4e2d\u7684\u4e00\u4e2a\u5f02\u5e38\u7c7b\u578b\uff0c\u5c5e\u4e8e java.util.ConcurrentModificationException \u7c7b\u3002\u5b83\u662f\u4e00\u79cd\u8fd0\u884c\u65f6\u5f02\u5e38\uff08RuntimeException\uff09\u3002<\/p>\n\n\n\n<p>\u8fd9\u4e2a\u5f02\u5e38\u901a\u5e38\u53d1\u751f\u5728\u591a\u7ebf\u7a0b\u6216\u8005\u975e\u7ebf\u7a0b\u5b89\u5168\u7684\u4e0a\u4e0b\u6587\u4e2d\uff0c\u5f53\u4e00\u4e2a\u96c6\u5408\uff08\u6bd4\u5982 ArrayList\u3001LinkedList\u3001HashSet \u7b49\uff09\u6b63\u5728\u8fdb\u884c\u8fed\u4ee3\uff08\u904d\u5386\uff09\u65f6\uff0c\u6709\u53e6\u4e00\u4e2a\u7ebf\u7a0b\u6216\u64cd\u4f5c\u4fee\u6539\u4e86\u8fd9\u4e2a\u96c6\u5408\u7684\u7ed3\u6784\uff08\u5982\u6dfb\u52a0\u3001\u5220\u9664\u6216\u66ff\u6362\u5143\u7d20\uff09\u3002<\/p>\n\n\n\n<p>1\u3001\u5f53\u5728\u4f7f\u7528\u8fed\u4ee3\u5668\uff08Iterator\uff09\u6216\u589e\u5f3a\u578b for \u5faa\u73af\u904d\u5386\u96c6\u5408\u65f6\uff0c\u540c\u65f6\u5c1d\u8bd5\u4fee\u6539\u96c6\u5408\uff08\u9664\u4e86\u4f7f\u7528 Iterator \u7684 remove() \u65b9\u6cd5\u5916\uff09\uff0c\u4f1a\u5bfc\u81f4 ConcurrentModificationException\u3002<\/p>\n\n\n\n<p>2\u3001\u5728\u591a\u7ebf\u7a0b\u73af\u5883\u4e0b\uff0c\u5982\u679c\u4e00\u4e2a\u7ebf\u7a0b\u6b63\u5728\u904d\u5386\u96c6\u5408\uff0c\u800c\u53e6\u4e00\u4e2a\u7ebf\u7a0b\u4fee\u6539\u4e86\u8fd9\u4e2a\u96c6\u5408\uff0c\u540c\u6837\u4f1a\u89e6\u53d1 ConcurrentModificationException\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u89e3\u51b3<\/h4>\n\n\n\n<p>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684 List \u8fdb\u884c\u6dfb\u52a0\u5143\u7d20<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> &nbsp; &nbsp;public static void main(String[] args) {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;test test = new test();<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;test.bugTwo();<br>\u200b<br> &nbsp;  }<br>\u200b<br> &nbsp; &nbsp;private void bugTwo() {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;List&lt;Map&lt;String, Object&gt;&gt; list = new ArrayList&lt;&gt;();<br> &nbsp; &nbsp; &nbsp; &nbsp;HashMap&lt;String, Object&gt; map = new HashMap&lt;&gt;();<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"1\", \"1\");<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"2\", \"2\");<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"3\", \"3\");<br> &nbsp; &nbsp; &nbsp; &nbsp;map.put(\"4\", \"4\");<br> &nbsp; &nbsp; &nbsp; &nbsp;list.add(map);<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(list);<br>\/\/ &nbsp; &nbsp; &nbsp;  for (Map&lt;String, Object&gt; demo : list) {<br>\/\/<br>\/\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  for (int i = 0; i &lt; 2; i++) {<br>\/\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  Map&lt;String, Object&gt; iMap = new HashMap&lt;&gt;();<br>\/\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  iMap.put(\"1\", \"11\" + i);<br>\/\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  iMap.put(\"2\", \"22\" + i);<br>\/\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  iMap.put(\"3\", \"33\" + i);<br>\/\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  iMap.put(\"4\", \"44\" + i);<br>\/\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  list.add(map);<br>\/\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br>\/\/<br>\/\/ &nbsp; &nbsp; &nbsp;  }<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;List&lt;Map&lt;String, Object&gt;&gt; listCopy = new ArrayList&lt;&gt;();<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;for (Map&lt;String, Object&gt; demo : list) {<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;listCopy.add(demo);<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for (int i = 0; i &lt; 2; i++) {<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Map&lt;String, Object&gt; iMap = new HashMap&lt;&gt;();<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iMap.put(\"1\", \"11\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iMap.put(\"2\", \"22\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iMap.put(\"3\", \"33\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;iMap.put(\"4\", \"44\" + i);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;listCopy.add(iMap);<br> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  }<br>\u200b<br> &nbsp; &nbsp; &nbsp;  }<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;list.clear();<br> &nbsp; &nbsp; &nbsp; &nbsp;list.addAll(listCopy);<br>\u200b<br> &nbsp; &nbsp; &nbsp; &nbsp;System.out.println(list);<br>\u200b<br> &nbsp;  }<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">\u6ce8\u610f<\/h4>\n\n\n\n<p>\u6682\u65e0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Java\uff1a\u65f6\u95f4\u5b57\u7b26\u4e32\u8f6c\u6362\u65f6\u95f4\u95ee\u9898 \u4ee3\u7801 &nbsp; &nbsp; public static void ma [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[46],"class_list":["post-4900","post","type-post","status-publish","format-standard","hentry","category-java-","tag-java"],"_links":{"self":[{"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/posts\/4900"}],"collection":[{"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/qaqaq.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4900"}],"version-history":[{"count":2,"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/posts\/4900\/revisions"}],"predecessor-version":[{"id":4906,"href":"https:\/\/qaqaq.top\/index.php?rest_route=\/wp\/v2\/posts\/4900\/revisions\/4906"}],"wp:attachment":[{"href":"https:\/\/qaqaq.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4900"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/qaqaq.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4900"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/qaqaq.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4900"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}