Java doubt..Please Help..?
600562
Okay once again..\nStringBuffer b = buf.replace(6,10,"orld");\n\nThis replaces offset 6 to 10 with world... So offset 6 in your case is W so it would be:\nHello orld\n\nNow That is correct.. Now b.delete(0, 1)\nThat deletes the 0 offset which is H! only so it would be\nello\n\nNow the total StringBuffer Contents is:\nello orld\n\n\nSee why? Remember buffers is like a memory location that stores a buffer, so treat it as global scope in that case
567069
make sure that the method ReturnBook is not a void but instead returns a boolean value.\n\nIf you want to follow the standard java naming conventions rename the method to "returnBook". Methods typically start with a small letter.\n\nkeep a bookmark to this page that contains all possible\njava compiler error messages for future reference:\n\nhttp://mindprod.com/jgloss/compileerrormessages.html
962163
First of all, did it install correctly? Is it enabled in your browser? Go to Internet properties in the tools menu and see if it is...if not, delete it, and then re-install it and use the tool that java has that lets you know if Java is installed and working on your computer. Just click the link that says something like "test your java software" .\n\nIts been a while since i've done it, but i had the same problem.\n\nlook for a link on the Java website that lets you email for customer assistance.
293992
Use TOBA (see link below)\n\nToba translates Java class files into C source code. This allows the construction of directly executable programs that avoid the overhead of interpretation.
992635
yes its a purely object oriented. Its because pretty much every variable youuse is and object. Even types like String and Integer. There are also many objects already written in java, that java provides, that you can use to create something or inheret it into your own classes and objects. \n\nThere are however some basic types like int (not Integer like above) and double, and boolean.  But majerity of the language is object oriented and almost every object is a subclass of another class. Thats why you end up having to do things like System.out.println. Meaning println is dependent on out, which intern dependent on System. So when writting something you end up having many dependecies and some lines can edn up being quite long.\n\nAnyways, yes, for majority - java is object oriented. Not completely since it still has basic types like int and double.
44673
Your program ran into code it couldn't execute or data it couldn't address.\n\nIf you wrote the code, look for things like uninitialized pointers, overwritten data structures, and anything else that could corrupt your code or data.
932102
You...cannot. Either declare it as a static variable, or create an instance of the object it is in.
162412
System.out is indeed an instance of java.io.PrintStream.  println() is a member function of java.io.PrintStream, but you're calling println() you're actually working with java.lang.System.out (which is a PrintStream, but Java already knows that, so you don't need to import PrintStream to show it).  \n\nPerhaps it would be helpful to you to understand what Java actually does with import statements.  They are *not* used to give the program access to different pieces of code.  It is tempting (especially for C/C++ programmers) to think that import statements are a mechanism for including other code files, but they are really more like C++ "using namespace" statements.  Java import statements have exactly one function: to save you typing.  You can take any program and remove all the import statements without breaking it, so long as you're willing to use the full names of all of your classes.\n\nJava's technique for deciding which files it needs to use is rather interesting.  Since all public classes are in files of the same name, Java can easily find any class by looking for a file named "name.java" (or name.class if compiled).  The dots between the package names are used to separate directories.\n\nOf course, if you wanted to pass something System.out as an argument, you'd need to use java.io.PrintStream as the parameter type (or import java.io.PrintStream).
1046273
Of course you can.  If you call the public static void main(String args), be aware of a never ending loop.
976175
Go back to Sun's Java site and head for the forums; that's the ideal place to get answers to questions of that nature. In fact, somebody asked a similar question in said forum:\n\nhttp://forum.java.sun.com/thread.jspa?threadID=460113&messageID=2107071
87629
go to http://www.javaalmanac.com/. You will get some examples in java
780385
Try it out - you need a semicolon at the end of the first print statement for it to compile.\nIn java,\nit prints out:\n0000000000\n0123456789\n0246802468\n0369258147\n0482604826\n0505050505\n0628406284\n0741852963\n0864208642\n0987654321
834951
Probably no one answered because you spelled java with an e.\n\nTry this out...\nhttp://java.sun.com/applets/\n\nSun site also has other tutorials and demos plus you can grab some ideas/code from http://www.java2s.com/Code/Java/CatalogJava.htm\n\nGood luck!
869339
maybe your java is not uptodate, try downloading the lastest java at http://www.java.com\n\nEnjoy. Cheers
619244
1. Have you got JAVA loaded??\n2. try the link on the top right "wait 3 mns to load or click here".
462064
i use eclipse for my java programs.. its quite simple, and gives u the exact lines where errors start..\njgrasp too works well..\ngood luck
749344
you probably need to install java console, www.java.com