Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Specs {
- String CPU;
- String GPU;
- double price;
- void printPcInfo() {
- System.out.printf("The PC's CPU is: \n", this.CPU);
- System.out.printf("The PC's GPU is: %s \n", this.GPU);
- System.out.printf("The PC's cost is: %.2f \n", this.price);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement