Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
41% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
3
Downvotes Received
6
Posts with Downvotes
6
Downvoting Members
5
3 Commented Posts
1 Endorsement
Ranked #856
Ranked #2K
~23.3K People Reached
Favorite Tags
Member Avatar for kukuruku

Is it OK to have if statement in the constructor Thanks [CODE] public class CTime { private int start_hour; private int end_hour; private int start_minute; private int end_minute; public CTime(int h1,int m1,int h2,int m2){ if(h1>=7 && h2<17 && h2*60+m2>h1*60+m1){ setStartHour(h1); setStartMinute(m1); setEndHour(h2); setEndMinute(m2); } }[/CODE]

Member Avatar for Washington AM
0
8K
Member Avatar for shahzeb C
Member Avatar for naveen1993
0
117
Member Avatar for pittdaniweb

Hello everybody, I was asked by an interviewer the following question. but I was not able to answer. Please get back to me if you know the answer. thank you in advance. Que: What is the exact difference between the "for" loop and "while" loop in C language ?

Member Avatar for rajii93
0
795
Member Avatar for amrita111

While installing windows server 2008 r2,I selected my country's name as region.Due to this I am getting symbol of my country's currency but I want '$' to be displayed in all browsers.If I change the setting using "Region and Language" in control panel, I am not able to loggin to …

Member Avatar for tigergeek
0
98
Member Avatar for amrita111

I have to validate a textbox having postal code.The postal code can be two formats as possible xxxxxxxxx or xxxxx-xxxx. My question is can I use two javascript regex for validating a textbox?

Member Avatar for amrita111
0
97
Member Avatar for amrita111

I am calling an mvc controller method vaia ajax call..When i put debugger on then that controller method is called sucessfully otherwise my ajax call is failing. What to do?

Member Avatar for LastMitch
0
96
Member Avatar for amrita111

Here Iam creating two dialog boxes on the click on links.When Dialog box no. 1 is open and I press escape key then it gets closed but this is not the case with dialog box no. 2.Why so? <script src="http://code.jquery.com/jquery-1.9.1.js"></script> <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script> <a href="#" id="PopUpLink">Open Popup</a> <br><br><br> <input type="button" value="Click …

Member Avatar for topdude155
0
214
Member Avatar for Jalaishaa

When I type the following code, I dont get the required output and I fail to understand why. Problem: Write a program to find the product of all the positive even numbers less than or equal to 30. Possible solution according to me: #include <stdio.h> void main(void) { int n, …

Member Avatar for Jalaishaa
0
177
Member Avatar for amrita111

I need to have a application in which files are uploaded on the server in asp.net . I want those files to get renamed automatically on the server on a certain date.How to proceed with this in asp.net. Kindly help

Member Avatar for JorgeM
0
130
Member Avatar for amrita111

Hello All, I want to have jquery plugin for nested unordered list upto level three.I have tried searching for this but was not able to find one except. http://www.givainc.com/labs/mcdropdown_jquery_plugin.htm but I dnt want levels to overlap with each other.Kindly help

Member Avatar for amrita111
0
92
Member Avatar for amrita111

I have tried an application in which user can extend his session to further 7 mins when there are only 5 mins left for session to get over by use of a button click.but my code is not working...Kindly help...Here is my code <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> …

Member Avatar for LastMitch
0
214
Member Avatar for amrita111

In asp.net I tried making an application in which I have a file upload option ...user can uplaod 500 files of image types in 1 go(select multiple image types files by using ctrl)....bt now when i have deployed this in IIS....its not working....displays a message page cannot be found....in web …

Member Avatar for JorgeM
0
189
Member Avatar for amrita111

Why to have service when we can create classes,interfaces and can use the property inheritance?

Member Avatar for jwenting
-1
145
Member Avatar for amrita111

I am new to C#.What is internal access modofier? I have googled it but getting some difficult terms like assembly etc. What is it in simple terms?

Member Avatar for Momerath
0
90
Member Avatar for sushants
Member Avatar for amrita111

I have created my project using jsp,servlets.I have also used meta tag for deleting browser's cache. Once logout,the user should not be able to perform any function using back button.I dont want to disable back button.The user should be on logout page even if he presses back button.

Member Avatar for LastMitch
0
96
Member Avatar for amrita111

I have created two folders with name 1)JSP containing jsp file(for login) 2)JS containing javascript file(for login validation) I have linked javascript file with jsp file int he following way. <script type="text/javascript" src="../JS/loginValidate.js"> How can I access parameters of login page(jsp file in JSP folder) in javascript file?

Member Avatar for code739
0
103
Member Avatar for amrita111

What is the difference between in and find_in_set()?When to use them??

Member Avatar for pritaeas
0
72
Member Avatar for amrita111

This is a part of my code. String name=sc.nextLine(); int no=sc.nextInt(); The problem is if I write sc.next() instead of sc.nextLine() then i can pass only "james" not "james watson". when i write sc.nextLine() then it takes integer not string.Why is it so? Please Help!!!

Member Avatar for JamesCherrill
0
127
Member Avatar for amrita111
Member Avatar for amrita111
0
133
Member Avatar for tokkuma
Member Avatar for amrita111

Why do we have DIV in mysql when we have /.What is the use of div??

Member Avatar for Bachu
0
71
Member Avatar for amrita111

I have created a simple java file on desktop..When I am trying to execute it using cmd(with all variables set) then it is getting compiled but during the time of "java Filename" shows "main not found".This file is getting executed in eclipse and netbeans..What could be the reason for this???

Member Avatar for peter_budo
0
74
Member Avatar for chinmayi4216

A player is good if the following conditions are satisfied: He is either from “India”, “Japan” or “Korea” He has a minimum of 3 years of experience He has won at least 3 major tournaments, and one of them must be "World Championship Tournament". He must know more than 10 …

Member Avatar for Gonbe
0
285
Member Avatar for Aditya_4

class Emp { int name, emp_no, addrs, ph_no, deprtmnt, post, project; Emp(int a, int b, int c, int d, int e, int f, int g) { name=a; emp_no=b; addrs=c; ph_no=d; deprtmnt=e; post=f; project=g; } Emp(int a, int b, int c, int d) { name=a; emp_no=b; addrs=c; ph_no=d; } Emp(int a, …

Member Avatar for Aditya_4
0
203
Member Avatar for shabcaan

help me at side of information technology specially hardware and software

Member Avatar for amrita111
0
61
Member Avatar for Kullercode

Just started learning JavaScript can someone please tell me what is wrong with this code <!DOCTYPE html> <html> <body> <h1>Password Requirement</h1> <p id="demo">Please enter your password</p> <input id="myInput" type="text" > <script> function myFunction() var a=document.getElementById("demo") var b=document.getElementById("myInput").value var c=document.getElementById("myBtn") if (b=="26a8f9e"(b)) { alert("Correct") } else { alert("Incorrect") } </script> <button …

Member Avatar for amrita111
0
299
Member Avatar for joe.crook.9

In this code, I am prompting the user to pick a number from 1-1000 and having the user keep it in his/her head. Then, in 10 tries or less I am trying to have the computer guess the user's number. This is what I have so far... import java.util.*; public …

Member Avatar for subramanya.vl
0
463
Member Avatar for sddq_bll

i Need to create a Menu Driven program ..but cant understand what it is ..some one help me out and explain me .

Member Avatar for amrita111
0
268
Member Avatar for Dani

[i]I found this in a few different places around the 'net - hopefully it's helpful:[/i] [font=Arial][size=5][color=#0000ff]Create a Desktop Shortcut to Lock Your Computer[/color][/size][/font] [font=Arial][size=2]You secure your computer by locking it whenever you're away from your desk. If you?re on a domain, by pressing Ctrl+Alt+Del and then clicking Lock Computer, you …

Member Avatar for MacroMonkey
2
1K