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
Type: Posts; User: ddonn
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
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...
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...
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)
{
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)
{
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...
Cheers thats a mistake i wont be making again.
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...