Jump to content

alienA2

Members
  • Content Count

    74
  • Joined

  • Last visited

Everything posted by alienA2

  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
  15. Hi guys! This is the error message I get running the Java script I created. C:\java_prog\mywork\RW2D>java rw2dException in thread "main" java.util.InputMismatchException at java.util.Scanner.throwFor(Scanner.java:909) at java.util.Scanner.next(Scanner.java:1530) at java.util.Scanner.nextDouble(Scanner.java:2456) at rw2d.main(rw2d.java:22) Script below: import java.util.Scanner;import java.io.File;import java.io.FileNotFoundException;import java.io.PrintStream;class rw2d{ //List of instructions public static void main(String args[]) throws FileNotFoundException
  16. mkay...me found this on the internet. It looks like it works... reply = myScanner.next().charAt(0); Pls tell me if its wrong...
  17. Please tell me where I am going wrong? ---- I am running my program in the CMD/ Command Prompt (Path linked to BIN for Java in Program Files). Text editor: Notepad++. Error msg:Have a coupon? (Y/N) Exception in thread "main" java.lang.NullPointerException at NicePrice.main(NicePrice.java:22) Code:import java.util.Scanner; class NicePrice{ // list the instructionspublic static void main (String args[]){ // variable declarationsScanner myScanner = new Scanner(System.in);int age;double price = 0.00;char reply;boolean isKid, isSenior, hasCoupon, hasNoCoupon; //prompt the userSystem.out.print("Ho
  18. My mate is looking for a freeware version of this software:Pastel Accounting Software:PASTEL PARTNERPASTEL EXPRESS However, he is a little broke right now because of all the crap he buys to make him fat. Plus his cat is pretty fat because of all the Macdonald burgers (poor cat). Anyways...if any of you clever dudes know where to find a freeware version or at least alternative to this accounting package software, please let me know.
  19. Hi I have a 32 bit OS (Windows 7), and XP. I only see downloads for 64 and 86. Please advice
  20. I am getting an error message when building this project. I am using JCreator for this.Error:Error: Could not find or load main class KeepingMoreKidsQuiet Code below: import java.util.Scanner;class KeepingMoreKidsQuiet { public static void main(String args[]) { Scanner myScanner = new Scanner(System.in); int gumballs; int kids; int gumballsPerKid; System.out.print(“How many gumballs? How many kids? “); gumballs = myScanner.nextInt(); kids = myScanner.nextInt();
  21. Very new to Java. What are good programs/application to run Java scripts? Only have notepadd++. Can you use Visual Studio Express for this (testing, compiling debugging etc)?
  22. Hello to all!I am looking to create an HTML5 page which allows users to draw on an image.Can this be done?
  23. According to the Server owner, yes it has. I am now receiving notifications from the server on my email that the message was sent. However, now the problem is that I am not seeing the actual message on my mails, just notifications that the message was sent.
  24. Are you asking if I am running this on my computer? If so, no. I am FTPing my html files and php file into another server which runs Linux. My site is up and running. But the contact page is not working (i.e. It does not send the message to the owner's sites's email address (mine) ).
×
×
  • Create New...