Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+4
Strength to Decrease Rep
-1
34% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
2
Downvotes Received
5
Posts with Downvotes
5
Downvoting Members
5
2 Commented Posts
~59.6K People Reached
Favorite Tags
Member Avatar for prem2

Hi, In C program Function has three parts, Function Declaration. Function Definition. Function Calling. In java i cannot able to declare a function .Is it possible to declare a function in Java. For example: [code] import java.io.*; import java.util.*; class Fun_example { // show();//Cannot able to Declare a Function ? …

Member Avatar for JamesCherrill
0
4K
Member Avatar for jsefraijeen

i'm a newbie in java and i got an assignment to do and i don't know how to start ... the problem is: Write a program that will compute for the product of two numbers without using the * operator.. Sample Output: Enter Num1 :___ Enter num2 :___ Product is …

Member Avatar for JamesCherrill
0
9K
Member Avatar for prem2

Dear all, I am using linux fedora os. But i cannot able to set the java Classpath command. Step 1: whereis java java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java /usr/share/man/man1/java.1.gz Step 2: vi .bash_profile export JAVA_HOME=/usr/bin/java export PATH=$PATH:/usr/bin/java Step 3: java -version java version "1.6.0" OpenJDK Runtime Environment (build 1.6.0-b09) OpenJDK Server …

Member Avatar for sepp2k
0
2K
Member Avatar for prem2

Dear team, I am facing difficulties to validate the below format. I want regular expression needs to be satisfied with the below condtion. $pattern = '/^\w[\w\s\.\%\-\(\)\[\]]*$/u'; $file_name = "(00)filename.jpg"; if(preg_match($pattern,$file_name)){ echo "Pattern matched"; }else { echo "Pattern not matched"; } I have tried several ways. But, the main problem is …

Member Avatar for ko ko
0
273
Member Avatar for Ashok_121284
Member Avatar for prem2

Hi team, Kindly, clarify the below query, i am confused the difference between in and like statements in the mysql. mysql> select count(id) as tablename from postings where is_active=1 and publish in (2) ; result -- 38 mysql> SELECT COUNT(*) FROM tablename WHERE is_active=1 and publish like '%2%'; result -- …

Member Avatar for diafol
0
357
Member Avatar for prem2

Hi, I have recently getting the follwing error when using soap in my php. Fatal error: Class 'SoapClient' not found My php version : PHP 5.4.19 (cli) Installed: php-soap.x86_64 0:5.3.3-23.el6_4 Currently using centos $client = new SoapClient('https://sandbox.cashu.com/merchants/cashUPayments.wsdl',array("trace" => 1)); Kindly, let me know how to fix it out. I have …

Member Avatar for cereal
0
977
Member Avatar for prem2

Hi guys, I am struggling with regular expression.Can you please suggest the regular expression for the below patterns. I have tried many times with several patterns but still i could not resolve the below patterns. 1. Must contain at least one alpha character (i.e. a, b, c etc,) 2. Only …

Member Avatar for pritaeas
0
246
Member Avatar for prem2

Hi guys, I am new to ruby i already have an experience in the core php and zend framework.I need to clarify the below doubts, Is oops in ruby is completely different from other oops concept languages like java,c#. Can you pls help me out. Thank you, Regards, Premnath

Member Avatar for sepp2k
0
122
Member Avatar for prem2

I have implemented 3D CoverFlow effect slider in jQuery, but its not working in IE7,IE8 so any one can give me solution for this issue. url of coveflow effect slider http://codecanyon.net/item/icarousel/full_screen_preview/2527180 This jQuery function is not working in IE7,IE8 and IE9 and also its a paid versions.

Member Avatar for pritaeas
0
220
Member Avatar for prem2

Hi team, Can any one say what is instance Method in java ? *Method Overriding Concept? Thank you, with Regards, Prem

Member Avatar for JamesCherrill
0
2K
Member Avatar for prem2

Dear all, I am new to javascript.I have a little doubt in basic concepts in javascript. //Example Program class classname(){ //Decalaring Properties var length; var abcd; public function toUpperCase(){ //This Method is used to convert the strings into uppercase } public function toLowerCase(){ //This Method is used to convert the …

Member Avatar for Troy III
0
206
Member Avatar for prem2

Dear all, I want to know what exactly the below command does in linux box. Command : ls -ltr Is this command sort only the main folders or it sort including the subfolders. Thankyou, Regards, Prem

Member Avatar for DavidB
0
153
Member Avatar for prem2

Dear all, I am new to mvc architecture Programming concepts.I have doubt that why peoples are using MVC Architecture?.What are the core benefits of using this architecture. Thank you, Regards, prem2

Member Avatar for baig772
0
143
Member Avatar for prem2

Hi , I have implemented the Hashtable and enumeration concepts in java.The program is executed fine but i have a doubt.When i try to print the keys and elements in the Hashtable by using enumeration ,it start prints from the second key and second element. Did any one know why …

Member Avatar for JamesCherrill
0
163
Member Avatar for prem2

Dear team, I need to get the information for a particular domain name using the php and some linux commands.So, i have tried a small program in php in Lamp Environment. When the user gives,www.google.com.My program uses the below commands and functions ping,dig,host,get_host_names etc.To retrive the informations. But i need …

Member Avatar for cereal
0
209
Member Avatar for prem2

Dear team, Please explain, which one will be faster in Mysql for the following query? SELECT * FROM `userstatus` where BINARY Name = 'Raja' [OR] SELECT * FROM `userstatus` where Name = 'raja' Db entry for Name field is 'Raja' there is no key for the field. I have 1000000 …

Member Avatar for iw2011
0
168
Member Avatar for prem2

Dear all, I have done a sample program using ajax . But onreadystatechange not working. If i specifies "false" in the open method. Example program : [code] <html> <head><title>Sample Ajax File</title></head> <script type="text/javascript"> function ajax_function(){ var httpReq = new XMLHttpRequest(); httpReq.onreadystatechange=function(){ alert(httpReq.readyState); } httpReq.open("GET","http://localhost/ajax/sample.php?name=prem&Id=1",false); httpReq.setRequestHeader("Content-type","application/x-www-form-urlencoded"); httpReq.send(null); } </script> <body> <form …

Member Avatar for macgurl70
0
2K
Member Avatar for prem2

Dear all, I am using linux . My system is connected to local network and i have local address as 192.168.1.1 . There are more number of systems in my organization.I want to list out, Ip address = list of sites used today. For example, 192.168.1.2 =>google.com,yahoo.com etc. Is there …

Member Avatar for prem2
0
169
Member Avatar for prem2

Dear team, How to get the process id for the particular file in php? for example ============ To get the process id in linux we use ps -ef | grep "message.php" Thank you, With Regards, Prem

Member Avatar for prem2
0
106
Member Avatar for prem2

Dear team, I am going to implement chat application in my site. I want to use long-polling or ajax -push concept in my program .I prefer to use php and javascript and ajax. kindly suggest me ajax-push concept or long-polling concept. Thank you, Regards, Prem

Member Avatar for Airshow
0
71
Member Avatar for prem2

Dear team, "ajax" is not supporting for cross-domain compatibility.I want to implement cross-domain compatibility.Did any one know new technology or technique to implement the cross-domain compatibility. Thank you, With Regards, Prem

Member Avatar for Airshow
0
188
Member Avatar for chiefpf

I need to write several algorithms and one is giving me trouble. The one giving me issue requires the use of recursion to produce a summation for an integer. For example summation(4)=0+1+2+3+4=10. The code I am working with is: [CODE] public long recursion(int N){ if (N <=1) return 1; else …

Member Avatar for masijade
0
2K
Member Avatar for prem2

Dear all, I have using db operations such as insert,update,select,delete in my program .I have perform this operation using the prepared statement. How to avoid the sql injection in my java program.? *)I want to know functions to avoid the escape characters in java ? *)Did any one know what …

Member Avatar for Taywin
0
1K
Member Avatar for oldezwe

I've been creating a login system in Java. The functionality of all the programming in java has been a breeze. Though, I can't find any good comprehensive tutorials on creating a login database, which is something I have never done before. [B]Could someone please give me or link me to …

Member Avatar for prem2
0
81
Member Avatar for coding101

Every time i read a post on how to compile in linux i still get errors. I goto the directory where the .java files are. then type "javac *java" to compile to java files. then i get errors "cannot find symbols" can someone give step by step instructions on compiling …

Member Avatar for prem2
0
110
Member Avatar for mani2

Dear all, I want to learn linux basic commands .So,tell me a tool to execute linux commands in windows xp? Tell me some details about vmware installation in windows. I dont want to install linux os in my system. Thank you, With Regards, mani

Member Avatar for sneaker
0
503
Member Avatar for cristi08
Member Avatar for prem2

Dear all, Scope resoultion operator is used to call the properties or methods of the class. Properties : =========== Variables Constants Why scope resoultion operator cannot be used for non-static variables . Can any one help me out . Thank you, With Regards, Prem

Member Avatar for Akill10
0
145
Member Avatar for prem2

Dear all, Why below program not working .It gives fatal error. NOT WORKING [code] <?php class Class_access{ const a="50"; public $bb="Class Variable \n"; function display(){ //$Function_Variable; echo "Function Display \n "; //echo $this->bb; } } $obj=new Class_access(); $obj->display(); echo Class_access::a; echo "\n"; echo Class_access::$bb; ?> [/code] WOKING ====== [code] <?php …

Member Avatar for Shanti C
0
123