The Artima Developer Community
Sponsored Link

Legacy Design Forum
Designing with Static Members

Advertisement

Advertisement

This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

static method

Posted by Shiva on January 26, 2002 at 8:42 AM

im getting an error " non-static method getContent() cannot be referenced by static method" after running this error.

import org.atsc.si.*;
import org.atsc.si.descriptor.*;
import java.io.*;

public class sample
{
public void test()
{
byte des[] = new byte[500];
des = Descriptor.getContent();
System.out.println("#####" + des);
}

public static void main(String args[]) {
sample s1 = new sample();
s1.test();
}
}





Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us