Jeff Kendall

Greenhorn
+ Follow
since Aug 19, 2011
Merit badge: grant badges
For More
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jeff Kendall

This post probably shouldn't be in this category but that's an issue for the mods or someone else to figure out. That being said I'd recommend looking into LUA. Also if you're interested in mobile game development look into Corona SDK. It's based on LUA and relatively simple to use. Also there's a good amount of help in their documentation and forums.
12 years ago
Your truncation should be outside of your main method body. I don't see where you are totaling your numbers and if you are trying to keep a running total your function should probably be returning a value instead of being void.
12 years ago
As you have it you are trying to instantiate a class called Dog that doesn't exist because you haven't made it. If you just want an object that contains "Dog" then you can do this.


Replace:
Dog d = new Dog();
With:
String d = "Dog";
12 years ago
Also unless I'm mistaken you'll want to use println not printlp.
12 years ago