Recent content by whitehorsey

  1. W

    XML Animation List Duration not working

    I am creating a border for an image view using xml. This is what I have: <animation-list xmlns:android="http://schemas.android.com/apk/res/android" > <item android:duration="200"> <shape android:shape="rectangle" > <stroke...
  2. W

    SQL "Where not exists" (nested loops)

    I'm having a hard time understanding how nested loops work in SQL. Find all the people who likes all the hobbies. select p.name from person p where not exists (select * from (select distinct h.hobby from hobby h) as h1 where not exists (select *...
  3. W

    Java Java While Loop and If statement

    I debugged it again and it doesn't go into the while loop anymore. In the first line x = 13. Second line x = 10. Third line x = 10.
  4. W

    Java Java While Loop and If statement

    Oh the tabs were due to copy and paste but in my code it is indented correctly. I printed out print statements and it does read x as 13. It won't let me change the if to '\0xD' because it is not a character constant. I created a blank text file in eclipse and pressed enter three times (three...
  5. W

    Java Java While Loop and If statement

    I am reading an input file that has blank lines. x reads character by character. x is equal to a new line so it goes into the while loop but skips the if x == '\n'. It's suppose to go inside the if statement but it doesn't. I tried debugging the code and printed out to double check x is holding...
  6. W

    Simple Harmonic Motion Problem

    Simple harmonic oscillator: ψ = 2A[cos(wavt) cos(1/2 wbeatt)] Amod (t) = 2Acos(1/2 wbeatt) In the book, it says the maximum amplitude Amod of the wave changes with time. Would that mean it is A?
  7. W

    Simple Harmonic Motion Problem

    1. What is the difference between ψ = Amod(t) cos (wavt)and the simple harmonic oscillator? 3. A. The amplitude is time dependent B. The amplitude,Amod , is twice the amplitude of the simple harmonic oscillator, A. C. The oscillatory behavior is a function of ? instead of the period, T...
  8. W

    How Can I Get GIFs to Load and Move in Android ImageView?

    I added the ImageView to the layout but it does not move. What do I do to make it move for a certain amount of time?
  9. W

    Java How do I use touchlistener to load new images on my Java Android app?

    Yep! I'm making a calendar so the first 6 images loaded are some random days of the week (mon, tues, etc.) . The person selects one of the days then it will load 6 random different images these will be to select the month. Thank You for catching that! if(count > 1) {...
  10. W

    Java How do I use touchlistener to load new images on my Java Android app?

    On my app there are two rows that holds 3 images each (as seen in the image attachment). In the beginning, the 6 images are loaded and then when a person touches one of the images I want the other 6 images to be loaded. It's a series of choices. Ex. First 6 images would be to pick what day it...
  11. W

    Java Java Multiple Constructors Question

    Got it! Thank You everyone! :smile:
  12. W

    Java Java Multiple Constructors Question

    Oh I got it! In the beginning, I thought the error in my program had to do with multiple constructors but it wasn't the case. But to clarify some of the things mentioned here: If I just left it as an empty constructor isn't that the same as not having that constructor at all because it doesn't...
  13. W

    Java Java Multiple Constructors Question

    Oh I see. If I don't want my variables to be static, what should I do to the first constructor (to avoid overloading)?
  14. W

    Java Java Multiple Constructors Question

    I'm sorry. Here's the code: I call it in the Main class note = new Note(9, "Calendar", "Day", date, sTime, eTime, list); static int id; static String name; static String description; static Date date; static Time sTime; static Time eTime; private static List list; Boolean flag; int sid...
  15. W

    Java Java Multiple Constructors Question

    In the main activity, I call one of the constructors: public Something() { //nothing initalized } public Something(7 variables) { ... (this.variable = variable) } public Something(10 variables) { ... (this.variable = variable) } I call the 7 variable one but the...
Back
Top