32,204 Topics
| |
Trying to get this code to work (bit of guidance and help would make a difference) explanations only are fine.. main method doesn't accept arrayProperty() import java.util.*; class Property { private String ID; private String description; private String location; private double weeklyRR; private char status ; private boolean visibility; public … | |
I cannot figure out how to get my icon to display, or get the GUI to flip through my array object. i have many errors that i cannot solve. i hope some one can help me. here is my code. [code] import javax.swing.JFrame;//imports java's JFrame component //----------------------------------------------------------------------------------------------------------- //----------------------------------------------------------------------------------------------------------- //Main Class … | |
please help me to calculate the distance between each pixels between the images stored in the database | |
Hi, Iam new to java as iam working for dotnet C#. Can any body tell me the software to convert java code to C#. Please, iam in very much need for it. Thanks in advance, Anjali ... | |
hi, there are 2 different database 1 database have the list of all the users and another DB only have the details of users who are logged in which is production DB. i have writthen below code but i am stuck over here plese do the needful. /** * */ … | |
Hi guys, I am trying to create a cell renderer that will set a background imagefor cells in a JTable I have created, depending on the data inside each cell. I think I will be able to do the rest, but for now I just want to be able to … | |
Please any one can help at this problem I have with javac. I have download the java jdk1.5.0_15 at least 20 times in three (3) machins and it do not compile. Actualy it can not read the file. Javac is installed and is on bin, when I type javac it … | |
why when i add private int yearpublished; my program has an error what is my mistake can you please help to fix it ------------------------------------------------------ this is the error that came out C:\goh>javac libmainsys.java libmainsys.java:19: ';' expected yearpublished = yrpub ^ libmainsys.java:28: cannot resolve symbol symbol : variable yearpublish location: class … | |
I have a new requirement telling me to roll out the log every 8 hours.. I mean.. a new log file must be created every 8 hours.. taking back up of previous logs Is is possible in log4j.prop As far i have searched in Internet, rolling out every 1 hour … | |
Hi everyone, I have a program that displays Chinese and Japanese characters. I've written the program inside Netbeans and it works fine. But when I use the program as an executable jar file, as built in the dist folder by Netbeans, the Chinese and Japanese characters are displayed as nonsense. … | |
Ok so i made a chat program that works on Lan. Now i want to make it work through the internet. I can get the internet ip address. Something like 99.144.21.93. SO in the socket i make the ip address of the server/client destination the 99.144.21.93. It doesn't work though. | |
Any suggestions on how to get fonts from an external drive rather than on my local drive. Here is what I use now: [CODE] GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); Font[] fonts = ge.getAllFonts(); // Get the fonts for (Font f : fonts) { System.out.println(f.getFontName()); }[/CODE] | |
Hi everyone, Could some one please tell me or show me the entire codings of how to insert a string to a thml code....like: to "http://www.google.co.uk/" i want to search a string and get the source code of the page result,and one more thing: how can i found a specified … | |
Hi all, I'm having a compilation problem relating to some Chinese and Japanese characters that I have hardcoded into a hash table. When I compile this code inside an IDE like Eclipse or Netbeans I get no warnings, but when I do it outside of the IDE I get the … | |
Hi everyone, I'm having some trouble creating an executable jar file that accesses data txt files when running. I've written a program using Netbeans that reads in both images and data and uses this data while the program is running. But when I try to run the program using the … | |
Simple program to check whether a number is prime or not. Something is seriously wrong because every result I get is 'false'. Help me out please. Thanks in advance. [CODE] class primeTesting { public static void main(String[] args){ int i=7; //changing the value everytime always gives false.... ??? boolean bool=false; … | |
I have two issues with my code: 1.When I run the code the components of the GUI are very large. I have attached a screen shot of what it looks like. I'm not sure how to change the size. I've tried using: nameOfButton.setSize(12,12); but that doesn't work. 2. I'm new … | |
| Sorry for the nooby question, but i've always wanted to make an instant messenger, I figured java was the best language as it is Multi platform and extremely portable. I wondered if their was any open source code i could look at to help me. Thanks |
Hi everybody: I want to make a java application, but I can't think of anything to make. Any ideas would be appreciated. Thanx, C++ | |
i m final year engg student,i need a mega project in java,plz suggest me some ideas. | |
OK here is my program so far and I'm getting a compile error on my constructor located in class Inventory on line 50 [CODE] // Inventory Program Part 2 import java.util.Scanner; //Inventory program //This program monitors DVD inventory, price, and stock public class Inventory {//new class inventory public static void … | |
I would be thankful if some one explain me where to start in order to access a database in Java on Eclipse Thank you in advance | |
Thanks in advance for your help, everyone. ...So basically, for a program I have to do for this internship, I have to find a way to extract certain lines of temperature, density, and frequency data from a .txt file, and then pop them in 3 different string arrays. A typical … | |
[code]import java.io.*; class Factorial1 { int fact(int n) { if(n==1) System.out.println(1); else return (fact(n-1) * n); } } public class Recursion11 { public static void main(String args[]) { Factorial1 f = new Factorial1(); System.out.println("Factorial of 3 is " + f.fact(3)); System.out.println("Factorial of 4 is " + f.fact(4)); System.out.println("Factorial of 5 … | |
Hello, I want to retrieve weather information of 'Chittagong' city of 'Bangladesh' country from "BBC.com/weather" from java application. but i don't understand where from i should start. Please give me suggestions. Its urgent. Thanks, Shahid | |
Hi... I really have a big problem in this program... I dont know how to properly read a user input from a text file. I will really appreciate your help. thanks. [QUOTE]import java.util.*; import java.io.*; //--------------------------in this part is my problem----------------------// public void openFile() { File myFile = new File("students.txt"); … | |
Hi. I am a student, and I have an report to do for our Computer Programming Fundamentals class. We are required to demonstrate the use and function of constructors and the JOptionPane class. I have implemented a simple age calculator using Java as my demo, and I intend to go … | |
create a method sumOfDigit(String str) compute and display the sum of the digits found in str Example: String str = "1234hello12678"; sumOfDigit(str) -> returns 34 ---need some codes guys! can you HELP me?! | |
Can someone please explain to me why I cannot move variables from object to object. I've been getting no sleep and burning myself out learning java and it is driving me crazy here is the example. [CODE]import static java.lang.System.out; class ONE { public static void main(String[] args) { TWO addition … | |
public class Sorting { public static void main(String[] args) { int j=10; int[] arr=new int[10]; for(int i=0;i<arr.length;i++) { arr[i]=j; j+=10; } int num=Integer.parseInt(args[0]); bsearch(arr,0,10,num); } static void bsearch(int[] arr2,int first,int last,int key) { while(first<=last) { int mid=(first+last)/2; if(key==arr2[mid]) { System.out.println("Found the key"); } else if(key<arr2[mid]) { last=mid-1; } else if(key>arr2[mid]) … |
The End.