First, my C++ compiler is on my Office machine not Java (java is on other computers) so the code below is in C++ but the question I have is relevent in Java as well...
Divisibility test here 3 & 9
Now it works just fine however, my student are doing this (Getting the same answers)
Question:
1. Why do I see books use the first solution when the second is shorter and give the same answer. 2. What is the point of all of those "tests" when the second solution appears to always work. 3. Were would the second solution fail? I want them to do the first solution not the second...
The students are first year students at university. They learn basic programming concepts in Java (linked lists, doubly linked lists, generics, Queues, exceptions, etc). Every week they learn something new.
Wow pretty advanced for beginning Java student- except with AP CS...
Question on Class Diagram in particular Interfaces and representation.
In UML 2.0 reference books Interface methods/attributes are not italics
in particular in Learning 2.0 and other UML references in basically says.."..unlike abstract classes, an interface does not have to show that its operations are not implemented, so it does not have to use italics."...
But in Head First OO (p. 224 and others) and in other Java programming books...Interfaces are italicized in UML..
Questions.
1. Why the incosistencies? 2. Which is correct- italic or non italics...or is it optional and if so why not say so- instead say one way or other...
I thought this question was answersd a while back but there seems to be inconsistent in notation..jc
There is a published article/newletter called "The Teaching Professor" for college and university instructors. They have different articles from over certain ideas some that would be an interesting read would be.
"Working in Groups- Understanding but not Applying" "10 Worthwhile Considerations for Improving Lectures"
"The Effects of Instructional Methods on Student Learning"
"Students Formulating Their Own Exam Questions"
"Contract Grading Options Reveal Level of Student Involvement"
And for Bert:
"Motivating Students: 8 Simple Rules for Teachers"
I know what Scanner is and have taught Scanner for files/console I/O for two semesters now..Just asking for opinion- since it is not consistent in Java Programming texts (1.5)
Oh and it is Malik that uses this:
Scanner inFile = new Scanner(new FileReader(filename));
I have been noticing a in new Java textbook editions- the use of Scanner with Text Files. However, there seems to be not a consensus in the books on what classes to use with Scanner with reading text files. Some use the File Class in tandem with Scanner others use FileReader and Scanner together.
Which classes do you Java professionals/users tend to use with text files..Give me a better direction on teaching files