Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

local variable not called

$
0
0

I keep getting a error that The value of the local variable x is not used

with this code:

package app;
public class Constructors {
  public Constructors(int value){
    System.out.println(value);
  }
    public static void main(String[] args) {
      //create instances here
      Constructors x = new Constructors(5839);
    }
  }


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>