Define largest!
Is "anaconda" larger than "bee"?
Type: Posts; User: Junky
Define largest!
Is "anaconda" larger than "bee"?
The error message states it cannot find the class ButtonEvent. It is not part of the Java API, is it a class you have written yourself? If so where is it?
Also, your button1Listener (etc) classes...
When I tried the very first hit was a link to the Oracle docs. Probably a good place to start.
What happened when you typed "java scriptengine tutorial" into google?
You could even use lastIndexOf and substring.
What constructors does the Node class have?
Neither do we. Can you provide more details such as copy and paste the exact error message (if you get one) or describe the behaviour and what it should do instead.
Do you have a question? You can tell when there is a question because it has that funny symbol at the end of the sentence.
Valid indicies for an array are 0 to length - 1. For an array that has a length of 5 the last index is 4 which makes 5 out of bounds.
That is not a specific question. An example of what I mean is if someone was having trouble with a loop not executing the correct number of times then they could post their code and ask "Why is my...
Most people understand how craps works. That is not what Norm was asking. Your first post was basically "here's my code, fix it for me". That is not how it works. What you need to do is ask a...
If you want your program to produce a specific answer to a specific question then you could use a Map containing Strings. Use the question as a Key and the answer as the Value. When user enters a...
Please help with Android.
Duplicate post.
The Random class can also generate random booleans which better map to yes/no.
public abstract class BankAccount
You cannot instantiate an abstract class.
If you need to count the occurrences of chars in a String then what you need is an int array with a length of 26. Then iterate over the String one char at a time. If the char is an 'a' increment the...
You already know how to do this. I imagine you have used Strings before and called many of its methods. In the code above you have a Random object and a Scanner object and manage to call methods of...
Post updated code.
"it doesn't work" provides us with zero information. Do you get errors? Then copy and paste the full and exact error messages here and indicate were in your code they are occurring.
So instead of following Norm's advice on how to diagnose your problem you just want some magic to fix it.
If args cannot be resolved then you did not call your parameter in the main method args. Please post your full code and use code tags
What have you tried?
Do you have any errors?
As it is your post is basically "here's my assignment, write it for me"
If you have a specific question then people are more than willing to help.
Why do you need an if statement? You only need 2 loops. Outer loop controls the number of rows. For each row print x number of spaces then have the inner loop print the numbers.
--- Update ---
...
Instead of having the x==3 situation as a separate if statement, try making it another condition of your if statement as an else if.
No. All you need to do is assign the returned array to a variable.