The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
0answers
9 views

How to implement HTTP /1.1Keep-alive feature in my web server [closed]

I am developing my web server. But I don't know how to add HTTP/1.1 Keep alive feature in my code. My task is I have to implement file-based multi-threaded web server with thread-pooling ...
-1
votes
0answers
16 views

Datatypes in Java. Is string same a character? [closed]

Is string containing a single character same As char?? This is a book question I need to answer. Pls help
7
votes
3answers
189 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 ...
1
vote
2answers
185 views

Need a practical solution for creating pattern database(5-5-5) for 15-Puzzle

I have asked this exact question on StackOverflow. I did not get the answer that I was looking for. Please read this question fully before answering. Thank You. For static pattern database(5-5-5), see ...
0
votes
0answers
122 views

All pairs shortest path, with only a few “required” nodes [closed]

Given a connected graph where I need to visit a subset of nodes. How do I compute the shortest path? As an example, refer to above image. I need to start from 0 and visit some/all nodes then go ...
0
votes
0answers
29 views

Terminate function on Java System.in .. possible? [closed]

I am currently working on a project where I have to make an agent to interact with a server. Each 50ms, the server will receive the last thing I outputted to System.out and send me a new set of lines ...
0
votes
1answer
81 views

Referencing a 2D array with a 1D array in java [closed]

Just say I have a 2D array of integers called grid and a 1D array with 2 values called point. Is there a way I can use point to reference a value on grid. Basically I have int[][] grid = something; ...
0
votes
0answers
121 views

Data structures used by companies [closed]

I was wondering about what data structures do online retailers like New-egg, eBay etc use to keep a track of there inventory as there are millions of items? Suppose Java is being used. Would a ...
0
votes
0answers
50 views

Java Pattern Matcher [closed]

The question may sound very silly, still let me ask this. I am trying to find a pattern in a string using Java pattern.matcher (String s) etc. I am really surprised to find that the pattern is ...
3
votes
1answer
145 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 ...