• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Question about import

Bee Torika

Newbie
Nov 12, 2015
35
2
I have to import those three classes.


import android.graphics.Color;

import android.graphics.Paint;

import android.graphics.Canvas;


And I will simply import all of that by

import android.graphics;



So, I have a question.


Why a developers import each of them one by one ?

Why not just import like import android.graphics; ?


This way will take much more time and memory ?


Oh, I know this is basic question, but I want to know a reason..


Thanks.
 
Last edited by a moderator:
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones