Skip to content

Japan Products 29

Blog written about Japanese hobby products by a Japanese

  • Hobby shop
  • Blog
  • Products
  • Marketing
  • Programming
    • Java
    • Home
    • JavaServlet
    • MACターミナル
    • エラーメッセージ
    • html
    • TOMCAT
  • English
  • Company URL (Japanese)
  • Toggle search form

メソッド間での変数の受け渡し

Posted on 2021年12月5日2022年4月15日 By Yu No Comments on メソッド間での変数の受け渡し

Public static void で subメソッドを生成する。引数にtest型の変数p2を加え、処理にセッターメソッドを記述しintの値を変更、そして出力処理を施す。

その後メインメソッドでsub();を記述し引数をp1にすると間接的な代入になる。

subメソッドに渡されるのはp1の参照コピーだ。これはインスタンスではない

Java, Programming

Post navigation

Previous Post: オーバーロード
Next Post: final修飾子

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

About

Hi! My name is Yu! I'm a Japanese exporter,dealing with rescue products, knick-knacks. This time, I've decided to sell Japanese hobby products overseas. In this blog, I'm just going to post what I am interested in as soon as I find. This blog is one of my activities to forcast demand of Japanese hobby products overseas.

Instagram

…

Recent Posts

  • Yokohama Camera right in front of Yokohama station (plastic model specialty shop)
  • BOOK-OFF SUPER BAZAAR OFUNA (Kanagawa pref Japan)
  • Hobby-off Fujisawa (Kanagawa pref Japan)
  • Surugaya, Yokohama Marui (Kanagawa pref Japan)
  • Finding products is my current job

Category

  • English
  • Marketing
  • Products
    • Japanese Hobby Shops
  • Programming
    • html
    • Java
    • JavaServlet
    • MACターミナル
    • MSQL
    • Spring-Boot
    • TOMCAT
    • エラーメッセージ

Archives

  • April 2022 (5)
  • January 2022 (1)
  • December 2021 (32)
  • March 2021 (1)
Company Information

Copyright © 2025 Japan Products 29.

Powered by PressBook WordPress theme