Search:

Type: Posts; User: ddonn

Search: Search took 0.15 seconds.

  1. Replies
    2
    Views
    950

    Re: substring StringIndexOutOfBoundsException

    problem solved.
    When i changed length+1 where the substring is created to just length it works. Not too sure why. If anyone could enlighten, it would be helpful
  2. Replies
    2
    Views
    950

    substring StringIndexOutOfBoundsException

    Hi guys,

    I am trying to count the number of words in a sentence. My method of doing this is as follows;
    1.Accept a sentence from the user using System.in
    2.Scan the user input and store as a...
  3. Replies
    1
    Views
    440

    JOptionPane display on seperate lines

    Hi everyone,
    I am trying to display an output message using JOptionPane. I want to display the message on a number of lines. I have tried numerous ways and can't seem to find a solution. If anyone...
  4. Replies
    2
    Views
    885

    Re: BankAccount assignment problem

    I have overcome some of my confusion and come up with this;

    import javax.swing.JOptionPane;
    public class FixedStartingBankBalanceAccount

    {

    public static void main(String[] args)
    {
  5. Replies
    2
    Views
    885

    Re: BankAccount assignment problem

    I have overcome some of my confusion and come up with this;

    import javax.swing.JOptionPane;
    public class FixedStartingBankBalanceAccount

    {

    public static void main(String[] args)
    {
  6. Replies
    2
    Views
    885

    BankAccount assignment problem

    Hi everyone,

    I have been given an assignment to create a file called FixedStartingBalanceBankAccount. I have also been given a BankAccount class file(attached).

    My assignment is to create a...
  7. Replies
    2
    Views
    263

    Re: beginner needs help with simple problem

    Cheers thats a mistake i wont be making again.
  8. Replies
    2
    Views
    263

    beginner needs help with simple problem

    public class WelcomeName{
    String myName="david";



    public static void main(String[] args){
    System.out.println("Welcome");
    System.out.println(myName);
    System.out.print("to the Java...
Results 1 to 8 of 8