Search:

Type: Posts; User: xhunter

Search: Search took 0.08 seconds.

  1. Replies
    1
    Views
    1,772

    Re: making text editor using string class

    The String class has a method called lastIndexOf. Try and see if that makes your parsing easier. :)
  2. Replies
    9
    Views
    2,618

    Re: writing java code help

    You should start by creating a class called Employee. :) Try googling first to see what a constructor is and how it can be used to initialize your variables. Your test class is relatively simple....
  3. Re: Help with toString method and an addObject method?

    Try reviewing your code to see what it's doing. For example, this method populates the entire array with the same Animal class. You'll need to write a few more lines of code to get the first index in...
  4. Thread: HELP

    by xhunter
    Replies
    5
    Views
    1,614

    Re: HELP

    package Account;

    // Inputting and outputting floating-point numbers with Account objects.
    import java.util.Scanner;

    public class AccountTest {
    public static void main(String args[]) {...
  5. Thread: HELP

    by xhunter
    Replies
    5
    Views
    1,614

    Re: HELP

    Wouldn't it be enough to prompt the user that they're making either a deposit or a withdrawal? For example:

    1. Prompt to deposit to Account 1
    2. Prompt to deposit to Account 2
    3. Prompt to...
  6. Thread: Simple Webapp

    by xhunter
    Replies
    4
    Views
    1,958

    Re: Simple Webapp

    The error was caused by spaces in my workspace location. I moved my workspace from C:\Documents and Settings\...\workspace to C:\workspace and the index.jsp location is now working fine. But now,...
  7. Thread: HELP

    by xhunter
    Replies
    5
    Views
    1,614

    Re: HELP

    public void debit(double amount) {
    if (_balance < 0 || _balance < amount)
    System.out.println("Amount withdrawn is greater than current balance");
    else
    _balance -= amount;
    }

    You...
  8. Thread: Simple Webapp

    by xhunter
    Replies
    4
    Views
    1,958

    Re: Simple Webapp

    Thanks for the quick reply. Yes, I'm getting a 404 response, and yes, I've just tried your URL and the same thing happens. I'm just wondering why accessing the servlet works but not the JSP.
  9. Thread: Simple Webapp

    by xhunter
    Replies
    4
    Views
    1,958

    Simple Webapp

    Hi, I'm trying to create a web application with a servlet but I couldn't get it to load to index.jsp. Can anyone tell me what I'm doing wrong? I'm pretty sure I already have the correct directory...
Results 1 to 9 of 9