non static variable cannot be referenced from a static context

前端 未结 5 987
伪装坚强ぢ
伪装坚强ぢ 2021-01-29 05:31

I am a Java newbie, so please bear with me and help.

I aim to first play then record sound.

I use netbeans IDE 6.8. Here is the code:

import java         


        
5条回答
  •  攒了一身酷
    2021-01-29 06:14

    While there may be more formal resources to explain this (e.g. the Java Language Specification), I frequently find myself checking this webpage for these kinds of questions:

    http://mindprod.com/jgloss/jgloss.html

    It explains these things quite well, also for noobs ;-) In your case:

    • http://mindprod.com/jgloss/static.html also linking to:
    • http://download.oracle.com/javase/tutorial/java/javaOO/classvars.html

提交回复
热议问题