32,204 Topics
| |
I know.. i am dumb, the simple logic is difficult for me.. get 5 numbers from user, and compare, which is largest and smallest, no array should be used. please help? | |
hi... what we need to send sms from pc to mobile and how using java?? plz help me if you can thx | |
Just a concept that has eluded me... Anyone who can help make this understandable would be a God send. in the directory c:/dev/myapp I have the subdir src/com/mycompany/myapp/MyApp.java which consists of [CODE] package com.mycompany.myapp import com.mycompany.MyUtil public class MyApp { public static void main(String args[]) { new MyApp(); MyUtil.Say(); } … | |
Daily life magazine wants an analysis of the demographic characteristics its readers. The marketing department has collected reader survey records containing, the age, gender, maritial status, and annual income of the readers. Design an application that allows a user to enter reader data and, when data entry is complete produces … | |
hiiiii plz can any body tell me how to dram following pattern in java using for loop 10001 01010 00100 01010 10001 such that number 1 form diagonal thanks | |
A group has been using a VB app for a while and it uses an access db as its data storage. I've been tasked with completely redoing this in java. The application will be self-contained with the data local (with internet updates), but not a central connection to a db. … | |
Right so I have a pretty simple code that draws the contents of a 2D array onto a panel and the panel is placed onto a frame. The array is of type String and just houses a number of different fruit. The problem is that when the contents is painted … | |
I am writing a program for class on catching exceptions. Everything compiles fine, but when I try to test my error trapping, this shows up. [COLOR="Red"]"How many integers would you like to enter? f Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1 This is not a correct integer, please try again. Before: … | |
I need help with this, im writing a league system and i need to order the teams by the points they have received max to min, im lost to where to begin any help would be good. [code] public class League { /* instance variables */ private Team name; private … | |
Hi! Does anybody know how to add MouseListener to JMenu? I have the following working code, however, as you may see, I have MenuListener that allows running "createBaseRight" after selecting (NOT CLICKING) JMenu: home. Thanks in advance! [CODE] JMenuBar menubar = new JMenuBar(); this.setJMenuBar(menubar); JMenu home = new JMenu("Начальная страница"); … | |
I need to create a program where in you would draw a line, just like the paint application, but if you drag it, the lines you created would be deleted.It also displays the(x,y) where your mouse point at in the screen. I'm starting on nothing.So anyone who can help me? … | |
How do I write a class with a method that will request a number from the user and output if it is even or odd and how do I write a class with a method that will request a year and report if it is a leap year. | |
Hey just started working with inheritance in my java class, my account class compiles fine, but i get a .class expected error when i try to compile the CheckingAccount class, can anyone tell me why? thx [CODE] package bank; abstract class Account { public Account(int accountNumber, String accountOwner) { number … | |
i have two codes: This one works. [CODE] public class ChessInterface1{ public static void main(String[] arg){ boolean valid4=false; int rowStart=8; int columnStart=3; int columnEnd =2; int rowEnd=1; int a=0; int size=rowStart-rowEnd; Math.abs(size); for(int i=rowStart-1;i>=rowEnd;i--){ for(int j=columnStart-1;j>=columnEnd;j--){ while(columnStart>columnEnd && rowStart>rowEnd){ rowStart--; columnStart--; a++; System.out.println("comparable variable is :"+a); System.out.println("The column number is … | |
Hi buddies! I'm creating an application that will be used at different operating systems and, most likely, different display resolutions. My current display resolution is 1680x1050. I've tried using layouts to position components in the frame. So, I didn't define any sizes of components (did't use "setSize", "setBounds", setLocation"). However, … | |
Hello! I have a problem with filtering JTable (AbstractTableModel)... So, this is my code: [CODE] //Create table and filter public TableRowSorter<MyTableModel> sorter; public static MyTableModel tableModel; ... //Define table and fill it with List "userDataList" List<UserDataRow> userDataList = readuserdatafromfile(); filetree.Form.tableDetails = new JTable(); tableModel = new MyTableModel( userDataList ); filetree.Form.tableDetails.setModel(tableModel); … | |
How do i write a source code in java that finds the non-trivial factors of a number e.g Case : 2 is prime. Case : 3 is prime. Case : 5 is prime. Case : 7 is prime. Case : 10 has factor(s): 2 5 Case : 12 has factor(s): … | |
Hi guys, Does anyone know how to hide a toolbar (file toolbar) in pdfbox using java api? really need help.. Thanks! | |
Can anyone tell me the advantage of the PHP language over .net and java? why most of the developers uses it for the development? why it is considered as the first prioritized lang for web development? answer me plz.Thanks in advance. answerers are great appreciated thanks again | |
How do I pause a thread indefinitely? im creating a game and i need a thread to be paused when the user pauses the game and the thread will resume when the user unpauses the game. =) im using thread.sleep right now but it requires an integer to determine how … | |
surfing all related java sites and forum I cant able to get the answer for when we going for abstract class ? Please help me out .... | |
ok.i have a problem in displaying the images into a jlabel.. the images is stored in mysql database and i used blob as its datatype.. my program is like a search engine.. when the user search for a keyword and click the search button it will show another class which … | |
i want to print number after decimal point.Is there any way to do it e.g This is a decimal number 6.28 and i want to print .28.can any help me out with a simple example | |
From my home directory, I created a directory [B]pkg[/B] and wrote 2 files [B]A.java[/B] and [B]B.java[/B] in it. [B]A.java[/B] [CODE]package pkg; class A { B b; }[/CODE] [B]B.java[/B] [CODE]package pkg; class B { }[/CODE] I went back to my home directory and typed the following : [CODE]javac -classpath . /pkg/A.java[/CODE] … | |
hello friends, I am calling an external _ant_compile.cmd program from my java methods as [CODE] Runtime rt = Runtime.getRuntime(); Process p=rt.exec(thepath);[/CODE] but here, the external program starts, and starts proceeding, but the problem is this launch takes place without any relation to the original class...which means, once after i have … | |
i want to move a bishop diagonally from one point to another i want to move it from (row=8,column=3) to (row=7,column=2) the move is valid but i want to secure it against any collision with another piece. so i am running an loop from the initial position to the next. … | |
hello, pls help me out with an program written in java or c to find the ip address of the systems,routers,printers.. present in the network. also let me know they r up or down. thanx, asha | |
Hi all I am programming a database-related application in Java(with msaccess). I have to facilitate several different types of queries, but I'd like to use the same JTable to display the results of each query (one at a time, of course). Initially the Jtable display all records. [CODE] JTable tableview; … | |
im using eclipse helios and i seem to not have the .scanner function, can someone please help | |
Hey Guys Can someone tell me how would i get started with trying to draw a graphical output Snowman. I am trying to make it with colored ellipse and rectangles. Thanks |
The End.