Results 1 to 6 of 6
Thread: Print command?
- 12-02-2010, 01:02 AM #1
Member
- Join Date
- Dec 2010
- Posts
- 4
- Rep Power
- 0
- 12-02-2010, 01:35 AM #2
Member
- Join Date
- Nov 2010
- Posts
- 90
- Rep Power
- 0
you mean like
system.print(results_variable);
??
- 12-02-2010, 01:59 AM #3
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,561
- Rep Power
- 11
...
(post no longer makes sense :)Last edited by pbrockway2; 12-02-2010 at 02:04 AM.
- 12-02-2010, 02:14 AM #4
Member
- Join Date
- Dec 2010
- Posts
- 4
- Rep Power
- 0
Thanks for the reply but im still a little lost For example:
import java.io.*;
class add
{
public static void main ( String[] args )
{
int num1 = 40;
int num2 = 10;
int sum;
System.out.println("First Number: " + num1 );
System.out.println("Second Number: " + num2);
System.out.println("Sum: " + (num1+num2) );
}
}
Say i wanted to print the last time only (the sum) What would or how would i send the command so that i can print the results to paper?
- 12-02-2010, 02:30 AM #5
Member
- Join Date
- Nov 2010
- Posts
- 90
- Rep Power
- 0
Ohhhh you mean an actual Printer HAHA now i get you.
i h ave no idea, one of the gurus here would probably know what to research
--EDIT--
did a quick search, this should help
http://tinyurl.com/23lmoml
- 12-02-2010, 02:31 AM #6
You mean, send the request to a printer?
Check this out: Lesson: Printing (The Java™ Tutorials > 2D Graphics)
Similar Threads
-
How can i print?
By Holmez in forum New To JavaReplies: 0Last Post: 11-02-2009, 11:06 AM -
cant get to print...
By chango77745 in forum New To JavaReplies: 0Last Post: 02-13-2009, 06:04 AM -
Print the text file and print preview them
By Java Tip in forum java.awtReplies: 0Last Post: 06-22-2008, 11:04 PM -
Unable to execute command line command in java
By LordSM in forum New To JavaReplies: 1Last Post: 08-08-2007, 12:23 AM -
Print XML tag
By DonCash in forum XMLReplies: 2Last Post: 08-07-2007, 06:02 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks