zeroliken 79

zeroliken 79

i just need one like if a is greater than or equal to 70 it will stop ..

if you mean the condition at line 40 then it's because if any of the condition remains true then it will continue to loop (if any of the variables is less than or equal to 70)

zeroliken 79

are you familiar with using a runnable interface so you can continuously repaint the object?

on a side note... it might be my laziness talking but if it were me I'd just use several images of pacman pertaining to a direction instead of writing code to draw the shapes. Then I'd call and paint a selected image depending on which key is triggered

zeroliken 79

how about printing those first two numbers before entering the loop since they're static output for all fibonacci cases

zeroliken 79

" optoin "
spell check

zeroliken 79

*judging from recent posts

your array expects an integer and searchName is a String

zeroliken 79

the first one checks for order if it's greater than, less than or equal to the object it is being compared with and returns a specified value given the result

the equals method checks for the equivalence of the objects with their values

the == works similarly as the equals method but it also checks wether the references to the object are equal

my opinion is since you only need to check if the list have duplicates the first option wouldn't be necessary
if the list contains elements that have primitive data types use '==' else use equals method
you can test each option and see for yourself which is appropriate, if you have doubts you can always check the API

zeroliken 79

you haven't started the thread, add this on your start method

Thread th = new Thread (this);
th.start();

zeroliken 79

The list probably contains the recent active members or members with high amount of posts/ reputation/solved threads from the forum your most active with

zeroliken 79

your condition at line 27 is causing this, if your input is valid it will always pass the loop condition thus printing the menu again

zeroliken 79

The error says it all,
the actual and formal parameter for printout() at line 70 at names is wrong as it is an array

zeroliken 79

cout? why use a c++ standard output stream in a java program?
use System.out.println() instead

zeroliken 79

try printing the new top of the stack and next input after every pop/push to have a general view of the problem and see if the current conditions would satisfy the current input and top of stack,

zeroliken 79

did you try printing out the contents of the array to see if anything is off or increasing the size of the puzzle by either a column or a row or both by all sides of the puzzle to see if it makes a difference in the results
for example put a new line of text at the beginning so p from 'develop' will be found at the second row

you could also try to minimize the puzzle and print out the contents and results to scope out where the problem occurs

zeroliken 79

I'm missing the middle part " "

print quotation marks before and after the loop/process that does the operation

zeroliken 79

did you make sure caps lock isn't on or you have administrator privileges?

zeroliken 79

but this does not address that issue of browser compatibility.

check the cross browser solution here http://html5doctor.com/native-audio-in-the-browser/

and a flash fallback for old browsers here http://www.html5tutorial.info/html5-audio.php at the end of the article

zeroliken 79

shouldn't this be simple like using the tag or am I missing a point here?

zeroliken 79

ok then same answer as before, put every element in a division
it'll look something like this

        <body>
            <div id = "main">
                <div id = "logo">...</div>
                <div id = "text">...</div>
                ...
            </div>
        <body>

where in its css the width of main is constant e.g. 900px

zeroliken 79

Scanner console = new Scanner(System.in
Scanner console = new Scanner(System.in);

Declare this only once and before the loop or the first use of input
also post the complete code your working with

and if the book title is something like "animals" and if i type in animal it does not show up

the words are not equal since the first word has 1 more letter s at the end

and if the user enters something like "and" i want everything in all of my arrays that contain "and" to show up

check the substring method

im not sure if i should use arrays or a list or even vectors

arrays should be fine for this

zeroliken 79

what I meant by fixed width is the width attribute of the division has a set value i.e. width:700px; which you can freely change or do you mean that it should have dynamic changes whenever the user zooms or scrolls?

zeroliken 79

A simple solution would be to place all the elements inside a division that has a fixed width

zeroliken 79

Do i have to start a new discussion whenever a question is solved?

yes

How is it?...

The for loops at the menu function is unnecessary, you could simply pass the value for the the stucture index from the main function

Now i'll go ahead and make the scan Buyer's items..any suggestions?

need more details about this, any specifications on what the program should do with the items? store them at a file,etc.?

zeroliken 79

for(int i = 0; i < list1.size() - 1; i++){
        if(list1.get(i).compareTo(list2.get(i)) == 0){
            list1.remove(list2.get(i));
        }
    }

once an element is removed from either list their sizes will be different from the other. So you can't compare the remaining elements of a list with the others original position

You could use a nested loop to check if a value from a list is present with every element from the other

zeroliken 79

for (int i = 3; i < range; i++ ){
    if (num % i == 0 ){
        prime = false;
        break;
    }
}

hint: for checking if the number is prime why does the condition here start with 3?

zeroliken 79

post your code, problems, etc

zeroliken 79

Could you give more details about the problem like any error messages or program output

also take note that printf function is part of the C stdio header

zeroliken 79

Let's start with the basics then, you need to learn a few things first before you start coding
I suggest you head over over to the java tutorials and read about classes, to learn the gist of things, here's a link
http://docs.oracle.com/javase/tutorial/java/javaOO/index.html
Once you have a clear understanding we can start tackling the coding part, feel free to ask questions here if you get stuck somewhere

zeroliken 79

Do you have an idea what classes and methods are and how should they work?

zeroliken 79

I currently have a subject titled "Introduction to Computer Organization and Machine-Level Programming" which focuses on Assembly language on 32 bit systems with Nasm as the compiler and uses Intel style syntax.

Having studied first high level languages first like C and Java I struggled a bit with Assembly which requires a lot of instructions to perform simple tasks which only takes a few lines for high languages to perform. Despite this unlike the high level lang I get to actually view the compute's memory storage and allocation for the program which answers some of the questions I'd have during the first years of my CS course

Now for other OS, correct me if I'm wrong as I recall Windows was built using C and also in Assembly(but the latter's only minimal)