My Task:
---Example: 2 2 3 20 10 7 9 6 8 8 8 2 9 12 14 5 5 5 5 19
plateau = 6 8 8 8 2 because 8 is the longest sequence of identical
numbers where the numbers to the left and right are lower.
...
Type: Posts; User: kram
My Task:
---Example: 2 2 3 20 10 7 9 6 8 8 8 2 9 12 14 5 5 5 5 19
plateau = 6 8 8 8 2 because 8 is the longest sequence of identical
numbers where the numbers to the left and right are lower.
...
Thank You sir, why do i make things so complicated.
I don't see what is wrong i wrote it down on paper but here is the task i am trying to accomplish.
Print out a count-by-count matrix of asterisks and percent signs, alternating by row
Example:...
844
~o)
Basically i am just trying to search for a name within the .txt and than print line for each number after the name.
For example: Mark 0 0 0 13 23 12 56 23 53 12 45
i get an exception...
accepts two strings and returns the character index of the position
where the second string begins in the first; returns -1 if the second string does not appear in the first.
Examples:
IN:...
Wouldn't i need the for loop because it would grab the specific character from the string.
String jumble(String): accepts a string and returns a jumbled version of the original: for this method, jumbled
means that two randomly chosen characters other than the first and last characters of...
Alright thanks. int sum = 0 was just from another code i forgot to delete it.
In this program allDigits(String): accepts a string and returns true if EVERY character is a digit, otherwise false.
The code seems really simple but i seem not to be getting it here is my code:...
Well every character has value i have to produce that value. I would believe that it is true. My string is "ABC" so as i access the string with s.charAt(i) grabbing that first character 'A' it is...
/* Something is wrong here not exactly sure i am a beginner. I cannot use ANY classes.
EXAMPLE: if argument value is "ABC" then the return value should be "198".
Help! Thanks in advance^:)^*/
...