The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
1answer
28 views

How can i test my binary tree [on hold]

Hey guy i was doing some binary tree practice when i came across a problem, im not sure if my tree is structured properly, it does what i want it to do but structurally im not sure if this is right, ...
-1
votes
0answers
9 views

Using polymorphism (Java) in order to create a submenu [on hold]

I'm writing a Java class that simulates a program menu. It uses two packages, one of which contains an interface. I want to be able to use this code to create a separate sub-menu without rewriting ...
0
votes
0answers
14 views

Furthering my Java knowledge [closed]

I took a Java course during high school last year but my teacher was not able to go through everything and I still wish to learn. I learn better reading a book than online tutorials but I don't know ...
-2
votes
0answers
8 views

get rules of Weka J48 Classification tree [closed]

I want to display a Weka classification tree to the end-user that I have generated using weka.jar in Java. But not the default tree in grey window titled as "Tree Visualizer" which is obtained via ...
-1
votes
0answers
6 views

Java Programming Method Overloading Help [migrated]

First time posting here sorry about the format. public static void main(String args[]) { ...
-3
votes
0answers
9 views

converting code from c++ to java - OpenCV [migrated]

i have this part of code in c++ int main() { cv::Mat src = cv::imread("image.jpg"); if (src.empty()) return -1; ...
-1
votes
1answer
21 views

Is it possible to make excluded search with for loop in Java? [closed]

I am trying to calculate all pure strategy Nash equilibrium in a mxn game. It requires to check all pure strategy pairs (m.n pairs). Suppose player 1 has m strategies. Algorithm should start with the ...
-1
votes
0answers
4 views

Error in Java: cannot find symbol [migrated]

I'm a beginner in comp sci and to java. I'm trying to do to a basic coding but when I put my code into Java it keeps saying cannot find symbol. I've tried so many different ways to fix it but I can't ...
-1
votes
2answers
38 views

Analysing Algorithms Big Oh/Complexity theory [duplicate]

I'm revising for my finals and from looking at previous exam papers I have a found a popular question that has came up almost every year, worth a lot of marks. Each year the question is written very ...
1
vote
2answers
65 views

Break and Continue in Structured Programming?

One of the ways to ensure following the structured programming paradigm is by having all control flows having only one entry and one exit point. Does skipping iterations by using break and continue in ...
0
votes
2answers
67 views

How to learn computer science the right way [closed]

I looked through the sites and this seems to be the best place to ask this question. I am sure it has been asked 10000 times but I am looking for a tailored answer to me and my situation. I currently ...
1
vote
1answer
41 views

Isn't software needed from programs to run? [closed]

I am a student who has entered a game programming competition called FBLA at school, and I sent them an email because I had a few questions about how the competition is ran. The main question I had, ...
-1
votes
1answer
37 views

Linked list implementation problem [closed]

Note its not a homework question, just practice Hi i have always seen linked list implementation in java using the following piece of code ...
1
vote
1answer
179 views

Code to get java code complexity [duplicate]

I have Java function as input and want to get it's order for example O( n ) I search in the internet very hard but didn't find any thing can help me, is there any algorithms or package may help me.
2
votes
1answer
216 views

Java, strong typing, covariance and contra-variance

While studying for a test in my OOP course, I came upon this question which had an answer I didn't really understand. The question is as follows (translated): The programming language "Sava" is ...
2
votes
1answer
292 views

Contracts for Java Bytecode

Introduction For a paper I need contracts, which are also referred to as Design by Contract (DbC)1, and conceptually go back to Hoare[2]. For my work I need to apply contracts to Java bytecode. The ...
7
votes
3answers
399 views

Inheritance, and dynamic access to members/attributes and methods in Java-like languages

I have a question about inheritance in Java-like OO programming languages. It came up in my compiler class, when I explained how to compile methods and their invocation. I was using Java as example ...
3
votes
1answer
204 views

Is the type inference here really complicated?

There's a question on SO asking why in Java the right type doesn't get picked in a concrete case. I know that Java can't do it in such "complicated" cases, but I'm asking myself WHY? The (for ...