Surekha Gaikwad

+ Follow
since Apr 25, 2019
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Surekha Gaikwad

well this issue is resolved.........thanks guys for your response
1 month ago
Yes I tried that way as well but it still not able to find main class ......I dont know why its happening that way
1 month ago
no specific reason.....but its being asked us to do in assignment so cant help out
1 month ago
I have below directory structure and have also create makefile in order to compile and run the files

Directory Structure

mqtt_client/src/edu/mqtt/au/*.java (all java files)

After running make all my compiled classes are stored under classes folder

mqtt_client/classes/edu/mqtt/au/*.java (all class files)

makefile content

When I run make command ......all java files compiles properly but when I run make run it gives me below error

Please suggest where I am going wrong

1 month ago
The thing is I have to check no of such elements which are out of order...not just to check whether the list is out of order hence I have to scan list further.
Moreover the elements are all integers so no such issue of checking data type
1 month ago
I have elements in the list in below mentioned order.


Here I have to check whether elements in the list are out of order or not.
For example in the above list 3 is out of order since it comes after 4, its not in sequential order and hence I need to report that it is out of order.
But if we can see the later occurrences of 3 (3 after 5 and 3 after 6)  should not be considered because it is duplicate so only one out of order i.e 3 after 4 (the first occurrence) should be reported.

I tried to implement in java but its not working as expected.......please suggest how will I do this in simple logic because I have to check this for every element of the list.
1 month ago
I am quite novice when it comes to regular expression part in java.
I have below response and want to write reular expression so that it can match the string "HTTP/1.1 200 OK".
How to write regular expression for this?
Extra condition that I have for matching the string is that in HTTP/1.1 part it can be either 0 or 1 after "."

HTTP/1.1 200 OK
Date: Mon, 29 Apr 2019 03:46:21 GMT
Server: Apache/2.4.29 (Ubuntu)
Last-Modified: Thu, 11 Apr 2019 11:48:25 GMT
ETag: "e9-5863fc3923a9a"
Accept-Ranges: bytes
Content-Length: 233
Vary: Accept-Encoding
Connection: close
Content-Type: text/html


<b> Hello COMP3310/6331 World! </b>
<li> <a href="k/200.html">Here's a page</a>
<li> <a href="pr.html">and here's a page</a>
<li> <a href="tr.html">and here's a page</a>

2 months ago
No I cant use any external API that is what constraint I have in my project
And I am only facing issue while extracting url which is set inside <img> tag....if you can see the snapshot clearly
2 months ago
I have below response that I got by sending GET request to some server (GET /k/302.html HTTP/1.0) using java socket connection.

I have to write simple java code where I am suppose to crawl all the urls present on this current webpage (/k/302.html).
Currently I am able to extract the first url ("/") using java regular expression as .
But I am not able to get the second url which is for <img> tag.

Below is the expanded html content that I got from console where it clearly specifies that "redback.jpg" has hyperlink.

But if we see the GET response it does not clearly tells that it has hyperlink. How to extract such urls from response only? I have to do this in simple java using socket connection with HTTP standard request without use of any other external libraries.

2 months ago