<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rhe_9</author_name>
  <author_url>https://blog.hatena.ne.jp/rhe_9/</author_url>
  <blog_title>IT大生、洋楽和訳とプログラミング</blog_title>
  <blog_url>https://rhe.hatenadiary.com/</blog_url>
  <categories>
  </categories>
  <description>エラーの詳細 Thread2.java:35: エラー: 無効なメソッド宣言です。戻り値の型が必要です。 public void synchronized increment() { ソースコード // myglobal の値を1つ増やすメソッド public void synchronized increment() { int temp = myglobal; // myglobal の値を取得 temp = temp + 1; 簡単にいうよ &quot;synchronized&quot; の位置が違いました。voidを挟み込んでいたために戻り値の型がないと判断されていたので「就職語＋void 関数名」の形…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frhe.hatenadiary.com%2Fentry%2F2020%2F11%2F12%2F112543&quot; title=&quot;【Javaエラー処理】「無効なメソッド宣言です。戻り値の型が必要です。」 - IT大生、洋楽和訳とプログラミング&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-11-12 11:25:43</published>
  <title>【Javaエラー処理】「無効なメソッド宣言です。戻り値の型が必要です。」</title>
  <type>rich</type>
  <url>https://rhe.hatenadiary.com/entry/2020/11/12/112543</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
