Jump to content

alienA2

Members
  • Content Count

    74
  • Joined

  • Last visited

Community Reputation

19 Good

About alienA2

  • Rank
    Newbie
  • Birthday 09/18/1983

Previous Fields

  • Languages
    Acrobat Javascript; mySQL (Oracle)

Profile Information

  • Location
    Cape Town
  • Interests
    Music and Technology
  1. According to the C++ book I have yes lol
  2. Hi My program is not calculating the wages correctly. Can somebody please tell me why??? /** PayCheck Program* This program computes an employee's wages for the week*/import java.util.Scanner;import static java.lang.System.in;import static java.lang.System.out;class mainPayCheckProg{ public static void main(String args[]) { // create an instance of the class or object payCheckMethods aWage = new payCheckMethods(); Scanner prompt_user = new Scanner(in); double payRate; double hours; double wages; int empNum; d
  3. Hello As as Beginner Programmer in Java, where do you start if you want to start building applications??? So much out there that one becomes overwhelmed. Do you:a.) Program and copy existing software?b.) Invent something of your own?c.) Collab with another programmer It is like you have the tools,...now what?? lol (By the way if any of you wants to collab on writing software, PM me please thanks.)
  4. Nevermind lol...figured this one out... go to File->Project Properties->RunThen change the text inside Main Class to the actual class name in your code... My program ran after this change. (note: the java code was written in Notepadd++ then tested on Command Prompt. But I would like to do inside NetBeans IDE now).
  5. I know to do this in Command Prompt. But how do you generate a class file in NetBeans?
  6. I have downloaded JCreator to do Java programs. But I am finding it difficult to "see" what I am doing. For example, I have an image design for a interface/GUI that I would like build with Java But JCreator does not have tools where one can select buttons, checkboxes etc etc. Does anybody know a great IDE software for this? More user-friendly, more easier to get started with a design and working your way into programming.
  7. Hi I am trying to run this program that was made for speech recognition. However, it does not run.Tools used: notepadd++; Command Prompt Here is the errors:C:\java_work\JavaVoice>javac JavaVoice.javaJavaVoice.java:14: error: package javax.speech does not existimport javax.speech.AudioException; ^JavaVoice.java:15: error: package javax.speech does not existimport javax.speech.Central; ^JavaVoice.java:16: error: package javax.speech does not existimport javax.speech.EngineException; ^JavaVoice.java:17: error: package javax.speech.synthesis does not existimport javax.speech.
  8. Please see the code, background image, and the buttons which are currently outside the background image. I would like to find out how to add the buttons inside the the background. tools used: notepadd++ and command prompt. Thanks creation1.zip
  9. H To keep it simple, are you saying .NET is the way to go? Sorry for asking, but is .NET a computer language of its own, or is it C# its langauge?
  10. I got this code that will not run. I took the code from a book for dummies. I understand what it is asking but I do not know why since the book shows this code as if it should work when it runs. Please advice. error:C:\java_prog\mywork\Account>java AccountError: Main method not found in class Account, please define the main method as: public static void main(String[] args) code: import java.text.NumberFormat;import static java.lang.System.out;class Account{ // variable declarations String naam; int dompas; double jousakie; void display() { NumberFormat moola =
  11. So to kick my friday off, I would like to ask what are the differences in the two languages. I know this might turn to a debate. But I am still a newbie in the Java world. I have been over articles via google searches, and have seen comparisons of the two languages. My question: Can both Languages make software like: Games; Music Production Software; and Business Applications (eg MS Excel). Or is certain software more dependent on a certain language's functionality and packages etc etc.
  12. Why } while (!"Y".equals(myScanner.next().toUpperCase()));Why is the ! character added to the code???
  13. Me again. Modified the code...it seems to work but your opinions are appreciated: /*Do another? Exception in thread "main" java.lang.NullPointerException at AddGuests.main(AddGuests.java:41)*/import java.util.Scanner;import static java.lang.System.in;import static java.lang.System.out;import java.io.File;import java.io.FileNotFoundException;import java.io.PrintStream;class AddGuests{ public static void main(String args[]) throws FileNotFoundException { //Variable declarations Scanner myScanner = new Scanner(in); PrintStream w2d = new PrintS
  14. Hi I am getting this error. I do not know why. I suspect it has something to do with the do while loop, where it mentions (myScanner.findInLine(".").charAt(0) == 'Y'); . Please advice. error:Do another? Exception in thread "main" java.lang.NullPointerException at AddGuests.main(AddGuests.java:41) code: /*Do another? Exception in thread "main" java.lang.NullPointerException at AddGuests.main(AddGuests.java:41)*/import java.util.Scanner;import static java.lang.System.in;import static java.lang.System.out;class AddGuests{ public static void main(String args[]) { //Variable decla
×
×
  • Create New...