Advertisement
Dimitar_Ivanov_16408

Specs

Feb 21st, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.27 KB | None | 0 0
  1.  
  2. public class Specs {
  3.     String CPU;
  4.     String GPU;
  5.     double price;
  6.  
  7.     void printPcInfo() {
  8.         System.out.printf("The PC's CPU is: \n", this.CPU);
  9.         System.out.printf("The PC's GPU is: %s \n", this.GPU);
  10.         System.out.printf("The PC's cost is: %.2f \n", this.price);
  11.     }
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement