sorry the line
byte value = chars;
should be char[j] with the j really being an i
I guess that is the how the software parses these posts
treats italics
this class will compile and run and do what you want
I think, :-)
public class ContainsOnlyInts
{
public static void main (String[] args)
{
boolean onlyInts = true;
checkValues: // Used to end
if ( args.length == 1 )
{
byte[] chars = args[0].getBytes();
for ( int...
I hope this will answer you question. It looks like you are doing a couple things wrong. First, when you want to call a static method on a class you must call ClassName.theMethod() or create an instance of the class and then call a method. If you want to open a file to read the best thing to...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.