Im just a beginner but I find java exciting
can someone help me Im trying to write a program
to spell ambulance backwards I think im close but
I need somw help Im using strings to spell.
Ty. :sad:
Bill T
0
Newbie Poster
Recommended Answers
Jump to PostGreetings.
Hi. Post what you have done and we'll see how we could help you. ;)
Jump to PostGreetings.
Umm...I guess what you want would be something like this:public class Ambulance { public static void main(String[] arg) { String foo; char[] chr; foo = "Ambulance"; chr = foo.toCharArray(); for(int i=foo.length()-1; i>=0; i--) System.out.print(chr[i]); } }
However, to increase usability, I suggest that you code …
All 6 Replies
red_evolve
1
Posting Whiz
Bill T
0
Newbie Poster
red_evolve
1
Posting Whiz
Bill T
0
Newbie Poster
carenrose
0
Newbie Poster
nblue
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.