Kiyoji Fukunaga

Greenhorn
+ Follow
since Jan 12, 2021
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
2
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kiyoji Fukunaga

Hello I am having a little bit of trouble with my code I am almost at the end yet I have a small problem, is there a way to remove the last "-" of the output of this code? for example I input "hello" the output I am for should be "15-12-12-5-8" and not "15-12-12-5-8-" I tried using str.substring(0,str.length()-1); but in the end it removed all of the dash and I only want the last dash of the code to be removed, I hope anyone can help me.



3 days ago
Hello I am new to Java programming and I am having a hard time on converting letters to numbers, what I want my program to happen is that for example a person types a string "I am Happy" then the output would be numbers, but in reverse for example "25-16-16-1-8013-109" include the - from the output, also the output is like that because the letters are suppose to have corresponding values example A = 1 B = 2 and so on. I = 9, space =0, A = 1, M = 13, space = 0, H = 8, A = 1, P = 16, P = 16, Y = 25. I think I almost got the code, but for some reason new problems occur and that is A and a should have the same values 1 uppercase and lowercase also how do I add the - and make sure that whenever there is a space the - would not occur same as 109 and 8013. Anyways here is the code I hope someone can help me and at the least give me advices and tips, we are allowed to have 1 main method and 2 user defined methods.


5 days ago