You main method is empty, so this program won't do anything. Why do you expect this to output anything?
Type: Posts; User: KevinWorkman
You main method is empty, so this program won't do anything. Why do you expect this to output anything?
What happened when you ran the code? Does it output what you expect?
When posting code, please use the highlight tags to preserve formatting. You can edit your post to add them.
What does this code do? Does it do what you expect? What's missing from it?
You forgot to ask a question.
Just because something is possible in C# does not mean it's possible in Java.
And it's **possible** in Java. It's just going to involve some native code.
You apparently have your own ideas...
This isn't really a job for Java.
You might be able to hack it using the Robot class, but going the way you're thinking about is going to require native code.
When posting code, please use highlight tags to preserve formatting. Also, use proper indentation to really highlight what's going on. You have a few things that look like this:
if(condition)...
I'm not going to do your work for you. If you want the String formatted, you're going to have to format the String. Google is your friend there. Why don't you try something and post an MCVE...
The best advice I can give you is that you might want to be a little more mindful of your attitude, and you might want to really reign in your expectations.
The stuff you're talking about isn't...
I have run your code.
Where are you doing the formatting of the text so that it includes colons?
I still don't really know what you're trying to do. Can you give us an example of how somebody would use your program?
http://stackoverflow.com/questions/26239332/make-a-map-of-the-world-with-constantly-changing-colors-in-java
Although given the vagueness of the question, StackOverflow will probably delete it in...
STOP YELLING
What does this code do? What are you trying to accomplish exactly? What do you think the timer.replaceSelection() method does?
What have you tried so far? What has google told you?
More to the point: programming is at least 50% taking a step back, away from the computer, and breaking the problem down into smaller steps, then taking on each of those steps by using google,...
You said it: helping him like this is a pretty bad idea. Why don't you have him make a post instead?
Which part of this is giving you trouble? What have you tried so far?
I'll get right on that!
(We aren't going to do your homework for you.)
https://www.google.com/webhp?q=java%20main%20string%20arguments
What is "String args[]"? parameter in main method Java - Stack Overflow
Java: Explanation of 'public static void main(String[]...
I've moved this thread to the Computer Support forum.
What exactly do you mean by "javascript link"?
You tell us. What does this code do? What did you expect it to do?
I would guess that the actual problem is caused by the Tuna class not being imported, but without an MCVE we're just guessing.
Is your error gone now?
Your error says it all: the code has no idea what tuna is. Where is the tuna class defined? (Btw, it should be Tuna, not tuna).
This is the first result for googling "java format number" and contains exactly what you're looking for: Formatting Numeric Print Output (The Java™ Tutorials > Learning the Java Language > Numbers...