- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
30 Posted Topics
Re: [code]import java.util.Random; public class random{ public static void main(String args[]){ System.out.println("random number generation"); Random obj= new Random(); //create object for random class int rgen= obj.nextInt(100); //get random number with in the range of 0-100 int rgen1= obj.nextInt(1000);//get random number with in the range of 0-1000 System.out.println(rgen); System.out.println(rgen1); //if u want … | |
is there any alternative ways to generate dynamic list in jsp ... i want to avoid jdbc connectivity code in jsp.... with out jdbc connectivity in jsp...i need to generate dynamic select list?? | |
how to pass javascript variable value to jsp variable??? ex: <script> var name="balaji"; </script> <% String name1 = name (i need to store java script name value here.) %> | |
How to parse a string data " B. Prakash 98400 51038 B.M. LAL BROS., TYRjijbEALERS 3 Whites Road, Royapettoh,thennai r 600 014. Ph: 2852 4560 Fax: +91-44-2858 8306 Email: bmlalbros@etn.iiet'" conisder this is my string data and i need to fetch name, address, phone , email seperately is there any … | |
1.in my project...if user want to exit from the application... it first check yes no cancel option,if the user want to choose ,no or cancel button .. the application is not closed..but my problem is what code placed for no or cancel button...to prevent closing window... code is...[CODE] class wl … | |
hi.. am new for asp.net... tried all net solution... but nothing can work... how to print a asp.net web page???? | |
difference between setdialogitemtext and update data??? in mFC VC++ application; both way we changing item values.. in some app one working another not working.. ex modal dialog update data not working.. any body explain??? | |
is there possible multimedia file transfer using servlet??? is it possible???? | |
i need some help..for vc++ 6.0 like vb inputbox...is there any inputbox available for dialog or sdi based mfc application... in vc++ is there any page navigation is possible... like vb hide or invisible... | |
am want to develop a file transfer program in vc++.. normal text file it is possible.. but is it can read for multimedia file.... like java here byte read is possible... | |
how to free memory of byte array... code[CODE]for(int j=0;j<count;j++){ buffer=null; //[COLOR="Red"]free the memory by set as a null but not working????? shows array index out of bound exception for the second time[/COLOR] buffer= new byte[size]; //byte mem alloc temp2=di.read(buffer,total,size);// read buffer total=total+temp2; fo=null; ds=null; fo= new FileOutputStream(flist[j]); ds= new DataOutputStream(fo); … | |
how to send mp3,avi(large) files via socket...small files with size less than 100kb is possible but how to send large file.. | |
how to use messagedeigest class to bring security to a file...encode and decode a file... any suggestion ????? | |
any operation with text area is not working,,,cant find bug... [CODE]import java.io.*; import javax.swing.JMenu; import java.io.FileWriter; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JFrame; import javax.swing.JTextArea; import javax.swing.JSeparator; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JScrollBar; //import javax.swing.JPopupMenu; import java.awt.Container; //import javax.swing.JFlowLayout; import javax.swing.JScrollPane; import java.awt.Color; import java.awt.Font; import java.awt.FlowLayout; import javax.swing.JFileChooser; import javax.swing.JColorChooser; … | |
is this possible create different applet page..and link with one page to another... if click button present in the one applet page... it will redirect or shown another.. (like html page ) is there anyway to create fullscreen application in java??(in applet or frame)... for connecting database applet based application … | |
am try to create notepad in java... menu item actionlisteners are not working...except exit... what is the problem with my code??? and is there any sequence follow... because am try to use jScrollpane the text area will be blocked??? code is.. [CODE]import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; import javax.swing.JFrame; import … | |
Re: where is your code ... and which code are you used to making jar.... | |
hi, am try to create a simple jar file... i got some error to run that jar file error =" Failed to load Main-Class manifest attribute from bala.jar" my code: [CODE]import javax.swing.JOptionPane; public class hello{ public static void main(String args[]){ String s= JOptionPane.showInputDialog("enter name plz...."); JOptionPane.showMessageDialog(null,"hello "+s); } }[/CODE] here … | |
Re: code: [CODE] System.out.println("string to array"); String s="abcdeabcdeabcdeqwertqwertqwert"; System.out.println(s); int n= s.length(); System.out.println(n); char[] array; int count=n/5; System.out.print(count); array=s.toCharArray(); int j=0; int tcount=0; String sarray[]= new String[count]; for(int i=0;i<count;i++) { sarray[i]=""; } for(int i=0;i<n;i++) { if (j==5){ j=0; tcount++; } sarray[tcount]+=array[i]; j++; } for(int i=0;i<n;i++) { System.out.println(sarray[i]); } [/CODE] [B][COLOR="Red"]output[/COLOR][/B] [CODE]F:\studies\java\test>java … | |
i need to change my user id to sathya88... please change my username... | |
some commands working properly(notepad ,control(control panel))... but how to execute commands "dir" like that my code is ... [CODE] public class test1{ public static void main(String args[])throws Exception{ Runtime r= Runtime.getRuntime(); Process p1=r.exec("notepad");//working fine Process p2=r.exec("control");//working fine Process p3=r.exec("test1.java");//cannot run Process p4=r.exec("dir");// cannot run } } o/p: F:\studies\java\test>java test1 Exception … | |
Re: if u do final year project....you can do with online servers ...that means create web browsers..that are partially done by all peoples...you can take and bring all features(one page to another) to that web browser..(URL and socket programming) 2.or crate any java archive files (jar)program..mobile applications (not for gaming its … | |
Re: chararacter arrays comparison: if ((Username=user1) && (Password=pass1))[COLOR="Red"]//wrong[/COLOR] if char[] a1,a2; Arrays.equals(a1,a2)// it return a boolean value [COLOR="Green"]if ((Arrays.equals(Username,user1)) && (Arrays.equals(Password,pass1)))[/COLOR] | |
[code] public class exception4{ public static void method(){ try{ exception4.method2(); throw new Exception("method throw"); } catch(Exception e) { System.out.println("method Exception caught"+ e); //throw e; } } public static void method2(){ try{ throw new Exception("method2 throw"); } catch(Exception e) { System.out.println("method2 Exception caught"+ e); e.printStackTrace(); [COLOR="Red"][B]//throw e; [/B][/COLOR] [COLOR="Green"][U]if include this … | |
Re: we use either one of the return type in method declaration... either int or void....... i this code cannot return anything.. code may be wrong.. u cannot use string parameter in the body also.. | |
explain how to pass parameter to thread?? | |
what is correlation Exception in java?? | |
Re: is there an posssible to set range for generate random numbers... ex: q1. i need random number between 0 to thousand... | |
hi... am develop simulator project...using java (java run time environment) for that can use applet method or java gui frame method.. suggest me.. |
The End.