32,204 Topics
| |
/* PointOne type objects has three members. Two of type Integer and one of type ThreeD a custom class. PointOneClone method takes an argument of PointOne type and copy every value from his members to arguments members. So the result is a PointOne instance with the exact same values but … | |
Hello everyone, I just start to study about Java and I need to design a website in Java. I do not know I should create a Java Application project or Java Web or Java EE.... Could you help me to start this? Thank you. | |
hi geys , I need ow to return a array string to my method public String[] SearchPort(){ ArrayList<String> arr=new ArrayList<>(); Win32Driver w32Driver= new Win32Driver(); w32Driver.initialize(); port= CommPortIdentifier.getPortIdentifiers(); while(port.hasMoreElements()){ cuport=(CommPortIdentifier) port.nextElement(); if(cuport.getPortType()==CommPortIdentifier.PORT_SERIAL){ // return cuport.getName(); arr.add(cuport.getName()); String[] t=new String[arr.size()]; t=arr.toArray(t); for(String j:t){ return t; } } //System.out.println(cuport.getName()); } String h[]={"noo data … | |
I have good knowledge of C, and a good knowledge of core Java. Please list out the areas I need to cover for J2EE. There are many technology available in j2ee.. Please tel me which technology is using uptodate.. I have premium account in lynda, vtc, and pluralaight.. There many … | |
Good day folks. Problem: My program needs to import data from a database and display them in a table then manipulate and display the data in various ways. That bit is solved the next part is where I need help. The program then needs to save locally... 1. the newly … | |
Hey everyone, Can we create a java file that runs without the JVM? I have googled the topic and found out about excelsior Jet that is meant to convert the java code into native one so that it won't require a JVM. Is it true and should I download the … | |
I know that this is probably the stupidest question that I have ever asked but here goes....... I am trying to create a new application in netbeans..... and having no luck at all. First I create a new project called Interactive Campaign Manager by choosing java category and then Java … | |
I need some help to make AES work with UDP. I keep getting this error. Exception in thread "main" javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:750) at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:676) at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:313) at javax.crypto.Cipher.doFinal(Cipher.java:2087) at AES.decrypt(AES.java:31) at EchoServer.main(EchoServer.java:26) It seems that upon receiving the … | |
Write a general purpose currency convertor program. The program is started by giving it three program arguments: the name of the currency the user holds and wishes to sell, the name of the currency the user wishes to buy, and the conversion rate from the first currency to the other. … | |
Hi, I want to build an application in java, without using ipAddress i should be able to access the Remote System. Please do the needful. | |
How do I set the security permissions to no restrictions with a .policy file when I start the application. I can trying to run it with HTML. Thank you! | |
Hello, I'm writing a plugin for a software in eclipse. I'm using vtd-xml.jar for importing an xml file. I have added to the build path by rigt clicking on the paroject and selecting the opetion add to build path. While I do the operations from eclipse it is working fine … | |
import java.io.*; import java.net.*; import java.util.*; public class UselessHTTPServer04 { public static void main(String args[]) throws Exception { int port = Integer.parseInt(args[0]); ServerSocket serverSock=new ServerSocket(port); while(true) { Socket conn = serverSock.accept(); Scanner scanin = new Scanner(conn.getInputStream()); String line=null; int nlines=0; while (true) { line = scanin.nextLine(); if(line.length()==0) break; nlines = … | |
Hi dear all i am new in java i don't know how identify the background and foreground color of image if any have idea please help thanks in advance | |
| Hello Guys , I am having an error message with javafx scene builder integration on netbeans kindly help me ! ![e0bfe397024238042e0c0a4b0776f3f0](/attachments/large/4/e0bfe397024238042e0c0a4b0776f3f0.PNG "e0bfe397024238042e0c0a4b0776f3f0") Thanks |
I am a beginner to hibernate.... I have a two tables like, t_2013 id name 1 donald t_2014 id name 2 charles This is my jpa, @Entity @Table(name="t_2013") public class Test implements Serializable { @Id @GeneratedValue @Column(name="id") private int id; @Column(name="name") private String name; Here i create one jpa with … | |
hi , we have a requirement to get grand parent,parent and child nodes display in treemodel.At the moment we have the parent ,child display of Tree Model .Could you please advise what need to be done to get this hierarchy -Grand Parent - Parent -children Thanks in advance for your … | |
Hi, Is it possible to create a Java compiler? Could you make a Notepad-like application, save the code as a .java file, compile it into a .class file, and run it? Basically, I want to combine Notepad and Command Prompt. I just need help on the compiling part (and listing … | |
| Hi Guys , I know this looks like quite funny question during the holiday season , but i developed small netbeans application called helloworld , which is kind of pressing button and displaying helloworld , i pressbuild the application and press run , but my application is not runnig even … |
var pattern =/^([0-9]{2})\/([0-9]{2})\/([0-9]{4})$/; | |
| Hello Guys , I am new to NetBeans , any idea what is the meaning of these icons ? Thanks |
| Hello Guys , When I checkout code from svn i get this error message any idea to fix this issue ? I use netbeans 7.3.1 , plugin subversion. ![38e5e181fb4f014e1a9cac948390b20a](/attachments/small/4/38e5e181fb4f014e1a9cac948390b20a.PNG "align-left") |
I have just started to learn java..!! I'm trying to implement some C++ programs in java.. Some of them are working perfectely. But this is the only program which is not working.. It's showing 2 errors at br.readLine().. I don't know what to do.. Kindly please have a look on … | |
i am try to compare the Stored-password and Salted Password for the Experiment. Now i have a Stored Password and Salted-password., Stored-password having 72-byte and Salted-password having 18-bytes only, but i facing problem on comparison, how can i compare the both of them.. Here my Code : RandomAccessFile raf = … | |
Hello all! Again thanks for viewing my thread. The past couple of days I have been struggling with trying to add JPanels to a JScrollPane. Basically I have data to display that comes in from another application in the form of a JPanel with regular updates. I am trying to … | |
code in java for send a free msg from internet to mobile phone like way2sms or 160by2 sites................. what are the requirments for that???? pls reply as fast as possible........... | |
I downloaded eclipse to my windows 8 computer along with the jdk and when I launch eclipse it tells me that it cannot not find the jre or jdk and that it is not in my current PATH. I have tried setting the path to the jdk folder but it … | |
Hello guys i want to show a data in my combobox when i click on an item ion my jtable i tried this but it doesn't work. i would apprecite it if any one can help thanx String add5 = rs.getString("Id_branch"); branch_combo.setSelectedItem(add5); String add6 = rs.getString("User_Role"); UserRole_combo.setSelectedItem(add6); | |
I am trying to write a program to calculate mean & standard deviation. I sort of figured out how to find mean (it is not correct yet, so i am going to need help on this part as well) but how do you do standard deviation? import java.util.Scanner; public class … | |
This is a code that I wrote and for some odd reason it doesn't count the number of inputted integers properly. import java.util.Scanner; public class IntegerCount { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter an integer, the input ends if it is 0: "); int … |
The End.