Welcome to the Java Programming Forums

The professional, friendly Java community. 21,500 members and growing!

The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: Cannot seem to get this working

  1. #1
    Junior Member
    Join Date
    Jun 2010
    Thanked 0 Times in 0 Posts

    Default Cannot seem to get this working

    So I searched the forums and the net and have to admit I'm hesitant of using a forum for answers but frankly I'm running out of idea's here. I picked up Sams Teach yourself Java 6 in 21 days and I am trying to get the blasted thing set up. Originally it was giving me a error "cannot find symbol" (2 errors) when I attempted to compile it. I changed from using Notepad to using ViM to write the code out again, now I have only 1 error. it reads as follows

    VolcanoApplication.java:16: cannot find symbol
    symbol : method checkTemperature()
    Location: class VolcanoRobot
    1 error

    It seems to hate that period....
    Some quick background----
    I am new to programming in Java
    I am running Windows 7 Pro
    I have already set PATH in my enviroment variables and running jdk version 6
    Both .java files are in the same directory.

    I have attached Volcano Applications code below

    class VolcanoApplication {
    	public static void main(String[] arguments) {
    		VolcanoRobot dante = new VolcanoRobot();
    		dante.status = "exploring";
    		dante.speed = 2;
    		dante.temperature = 510;
    		System.out.println("Increasing speed to 3.");
    		dante.speed = 3;
    		System.out.println("Changing temperature to 670.");
    		dante.temperature = 670;
    		System.out.println("Checking the temperature.");

    Here is the VolcanoRobot.java aswell

    class VolcanoRobot {
    	String status;
    	int speed;
    	float temperature;
    	void checktemperature() {
    		if (temperature > 660) {
    			status = "returning home";
    			speed = 5;
    	void showAttributes() {
    		System.out.println("Status: " + status);
    		System.out.println("Speed: " + speed);
    		System.out.println("Temperature: " + temperature);
    Last edited by OttawaGuy; June 28th, 2010 at 09:44 AM.

  2. #2
    Member Charlie's Avatar
    Join Date
    Jun 2010
    Thanked 5 Times in 5 Posts

    Default Re: Cannot seem to get this working

    void checktemperature() , notice the not capitalized "t"

    dante.checkTemperature() , notice the capitalized "T"


    Edit: What I mean ofc, is that poor dante would have more luck with finding the "checktemperature()" method
    Last edited by Charlie; June 28th, 2010 at 11:33 AM.

  3. #3
    Junior Member
    Join Date
    Jun 2010
    Thanked 0 Times in 0 Posts

    Default Re: Cannot seem to get this working

    Jesus murphy, thanks a ton can't believe how long I was thinking I set up the enviroment wrong./

Similar Threads

  1. Boggle not working?
    By gandalf5166 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: May 6th, 2010, 10:53 AM
  2. My KeyListener is not Working!!
    By DarrenReeder in forum What's Wrong With My Code?
    Replies: 2
    Last Post: February 28th, 2010, 05:18 PM
  3. Working with MAC .DMG files
    By mdv2000 in forum File I/O & Other I/O Streams
    Replies: 0
    Last Post: January 21st, 2010, 12:31 PM
  4. Working with Methods
    By duckman in forum Object Oriented Programming
    Replies: 3
    Last Post: November 9th, 2009, 08:27 PM
  5. Replies: 4
    Last Post: January 27th, 2009, 12:03 AM