32,199 Topics
| |
i ask my teacher why java doesn't support pointers my teacher reply me that it is because pointer's are very hard to understand so java doesn't support the pointers. but i don't think that it is true. please help me by giving the right reason. | |
Hello! I am writing an application for an embedded system with GUI written in swing. I now want to incorporate animations in the GUI to enhance usability. Hypothetical example: The user sees a table with some buttons ant things around it. The user can temporarily "save" the table, which makes … | |
I am little confuse , with a point that in IOS 4 we need a tool xocde that supports java...so i want to know about IOS 5, Does java supported by iOS 5 or not? | |
okay so ive finished this code but now i have to modify it so that it uses the following lines of code to make the program "easier" to understand private static void writeText(BillboardInterface billboard, int x, int y, String text) private static void writeLetter(BillboardInterface billboard, int x, int y, char … | |
i've made this little game but the image keeps on flickering. i've read about double buffering online, but i really don't know how to implement the code into my game. here's some of the source code from the constructor and paint method: [code] public Game(){ super("test"); setSize(495,429); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); try{ … | |
Okay I am working on arrays in class this week and since it is an online course I don't have anyone to turn to. YAY me! Basically this is what I have been asked to do. [I]Create a class named TVShow.java. Data Fields can include a String containing the Name … | |
Hi I have a class which I have packed as a jar file.When I run the jar on its own the application executes as expected.I have got a JFrame(Main) which has a button which when clicked, fires off the jar. But the JasperViewer doesnt launch at the end unless the … | |
Hello All, I am new to the field of security testing. Can u guide me to some startup material to get into professional ethical hacking or share ur personal tips in the former. Thanks in advance | |
i want to add isEnabled() method to JTextField, i write a code [CODE]tRate=new JTextField(); if (tRate.isEnabled()){ JOptionPane.showMessageDialog(c,"press any key to get rate"); }[/CODE] but it is giving message just after compilation of program instead when tRate is enabled | |
I am given a assignment in college to make a project in java. i want to make program in java but my teachers advice to make a system program not application program. But i don't know anything about system programming in java so please guys suggest me topics and also … | |
I'm having trouble printing out what I want. If I put my printing statements inside the Calculate method, it does print out what I expect. However, I want to do it in a separate method. Can anyone tell me what I did wrong? Also, can anyone point out to me … | |
i want to make a program that contains two main classes and they call each other. [CODE]class Main1 { public static void main(String arg[]) { for(int i=0;i<5;i++) System.out.println(i); Main2 m1=new Main2(); } } class Main2 { public static void main(String arg[]) { static int j=0; for(int i=0;i<5;i++) System.out.println(i); if(j==3) break; … | |
Hii guys.... i am a new programmer of java. i want to implement a problem using CALL BY REFERENCE as i have done in C. please help me to do this. | |
Hello guys, Im new at java. Ive been googling this for hours but don't have any luck. In HTML, there's this colspan thing wherein you merge two or more vertical cells. These cells become one. I want to know what's the syntax for that one in java. Also, I want … | |
I need to make the integer "order" save to a text file or database (All I need it to do is to count how many times you win & save it there). Every time the game starts up, I want it to read it, & every time the game is … | |
Hi I am using jasper reports to generate pdf reports from product data.I am storing the pdf file into a database column (blob) using FileInputStream.I have got a desktop application which retrieves the tables from the db.What would be the best way to retrieve and view the pdf file in … | |
can we add mouse click event on multiple controls in a single frame, if yes plzz specify the code or jst giv starting of code | |
hi guys, i want to develop the biometrics (finger print) attendance system in java. To do so what are the areas i need to learn? can u recommend me some links, ebooks, etc. on the matter of this. thanks | |
i m having trouble in constructing a edge detector by using the sobel kernels and expected results are the vertical, horizontal and gradient edge image. Sobel kernels : [-1 0 1 hx = -2 0 2 and -1 0 1] [-1 -2 -1 hy = 0 0 0 1 2 … | |
I know there are several related threads, but a lot are more advanced than what I'm trying to do. I swear, I've looked at ALL of them, on many different forums. I'm in a 2nd year Java class in college, professor is not the best...I've read the book, Googled for … | |
[CODE]import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Calendar; import java.util.GregorianCalendar; public class CheckIn{ Date today; void getArrivalDate() { DateFormat df = new SimpleDateFormat("dd/MM/yyyy"); try { System.out.print("Enter Date in dd/mm/yyyy format: "); String d = Keyboard.readString(); today = df.parse(d); df.format(today); } catch (ParseException e) { e.printStackTrace(); } } void … | |
So basically I am done with my project, I've passed to our instructor already, and I've achieved an above average grade, but one thing though I am still not satisfied, can someone check this code out for me? give me few tips? ? or tricks about this? here's my code … | |
Hi, I have created an applet in which it is possible to select a shape from the combo box and the the shape moves with the mouse.Everything works just fine except a few problems. 1. The combo box is only displayed when mouse is moved over it. 2. The triangle … | |
is there anyway to generate numbers from 0.0 to 999 999 without repetition? I am thinking of making an array that you can put 27 integer datas in it like this [CODE]double amounts[] = { 0, 0.01, 1000000, 25, 250000, 75, 50, 1000, 200, 100, 400000, 750, 5000, 750000, 500, … | |
So today I learned you can't modify an arraylist while you are iterating through it. In this case, I must be able to add elements though, while staying inside my loop. Any ideas? I tried using the Iterator class based off some examples online. Excuse my in-elegant code, it was … | |
Hey everyone, I've searched around Google a bit but most places suggest just using "\n" over and over. This gets messy though, for the code and the interface. Is there a built in method for Java that can clear the console? | |
Hi, I am having problem understanding the below: 1) List a = new ArrayList(); 2) List <?> b = a; 3) List <? extends Object> c = a; // with warning of course Why there is an unchecked warning at clause 3) while no unchecked warning at 2) ? I … | |
Hello, I'm just starting to learn Java, and for a summation program that we started in class, I've been stuck on the question as to why this brings up an error message when I try to build it. Please advise me. [CODE]import java.util.Scanner; public class summation{ public static void main(String[] … | |
[CODE]import java.io.*; public class Prime{ public static void main(String[] args) throws IOException { BufferedReader jill = new BufferedReader (new InputStreamReader (System.in)); boolean isPrime = true; System.out.print("Enter number: "); int input = Integer.parseInt(jill.readLine()); if(input < 2){ isPrime = false; } if (input == 2) { isPrime = true; } if (isPrime) … | |
C:\Program Files\Java\jdk1.6.0_18\bin>javac -d ../bin rmidir\Chatserver.java rmidir\Chatserver.java:6: cannot find symbol symbol : class Chatclient location: interface rmidir.Chatserver public String[] login(Chatclient cc) throws RemoteException; ^ 1 error |
The End.