[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Danny Alphones wrote:can you either tell me where i can learn about arraylists or show me an example of how i could write 7 if statements (or call a method 7 times).
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Learning language is easy but learning basics is difficult
Danny Alphones wrote:so in my case i would do the same process but 7 times right
Learning language is easy but learning basics is difficult
Danny Alphones wrote:Ok, thanks, and also i will send you my modified code later so you can check it:)
Learning language is easy but learning basics is difficult
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Learning language is easy but learning basics is difficult
Danny Alphones wrote:i dont think i can use the scanner because i am using a old version of eclipse and java so how would i do it other wise.
Learning language is easy but learning basics is difficult
Danny Alphones wrote:the only reason i am using an old version is that i am learning from online free lectures on the Stanford website and it requires an old version of the two.
Learning language is easy but learning basics is difficult
Danny Alphones wrote:yeah i found out that i could use a scanner if i wrote java.util.U*; instead of java.util.Scanner;
![]()
Learning language is easy but learning basics is difficult
Are you quite sure about that? Please check carefully.Jeanne Boyarsky wrote:. . . it should only loop once. . . .
Scanner was introduced in 2004. Nobody ought to use a version of Java® so old that it doesn't have Scanner. If the tutorial you are using is old enough not to mention Scanner it should not be used either.Danny Alphones wrote:i dont think i can use the scanner because i am using a old version of eclipse and java so how would i do it other wise.
That looks mistaken; I am pretty sure the first class name will fail to compile after import. Just because you can get away with imports ending * doesn't make them a good thing, anyway.Danny Alphones wrote:yeah i found out that i could use a scanner if i wrote java.util.U*; instead of java.util.Scanner;
![]()
That is incorrect. Look carefully at the operators.About 12 hours ago, you wrote:7 sense i is repeating until it is more than 7
Don't get me started about those stupid light bulbs. |