Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Color;
- import java.util.Scanner;
- class ColorTest {
- public static void main(String[] args) {
- Scanner scan = new Scanner(System.in);
- int r = scan.nextInt();
- int g = scan.nextInt();
- int b = scan.nextInt();
- System.out.println(new Color(r, g, b).getRGB());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement