0

do we need to import packages when we use eclipse

31st Aug 2016, 3:44 AM
Ravi Parekh
Ravi Parekh - avatar
9 odpowiedzi
+ 1
what I'm saying is, there are extended libraries for additional functionality in Java, such as taking input, using JFrame, randomizer, etc.. These are outside the normal libraries and require import for them to be used
31st Aug 2016, 5:38 AM
James
James - avatar
0
yes, a lot of packages aren't default by nature to conserve memory. Import the packages you need, which is why it's also advised to use specific package members instead of whole ones. Like import java.util.* vs import java.util.Scanner. Dependent on the size of your program, of course
31st Aug 2016, 4:56 AM
James
James - avatar
0
class MyClass { public static void main(String[ ] args) { System.out.println("Hello World"); } }
31st Aug 2016, 5:06 AM
Ravi Parekh
Ravi Parekh - avatar
0
that doesn't need any packages outside the default, so it'll run fine
31st Aug 2016, 5:09 AM
James
James - avatar
0
so in basic programming if we don't import package so is it ok
31st Aug 2016, 5:10 AM
Ravi Parekh
Ravi Parekh - avatar
0
can you teach java me java from basic?
31st Aug 2016, 5:11 AM
Ravi Parekh
Ravi Parekh - avatar
0
I understand what you said ... but I was asking that can you teach me java from begin?
31st Aug 2016, 5:42 AM
Ravi Parekh
Ravi Parekh - avatar
0
Just keep practicing and reading tutorials, post questions you have. I don't do independent teaching, sorry :(
31st Aug 2016, 5:45 AM
James
James - avatar
0
if I have any doubt I will ask you here thanks
31st Aug 2016, 5:48 AM
Ravi Parekh
Ravi Parekh - avatar