32,204 Topics

Member Avatar for
Member Avatar for gudads

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?

Member Avatar for peter_budo
0
1K
Member Avatar for amoon108

hi... what we need to send sms from pc to mobile and how using java?? plz help me if you can thx

Member Avatar for stephen84s
0
536
Member Avatar for pnelsonsr

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(); } …

Member Avatar for JamesCherrill
0
98
Member Avatar for StacyAnn1296

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 …

Member Avatar for Nick Evan
0
153
Member Avatar for sushil490023

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

Member Avatar for sushil490023
0
82
Member Avatar for pnelsonsr

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. …

Member Avatar for ~s.o.s~
0
73
Member Avatar for Katana24

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 …

Member Avatar for Ezzaral
0
2K
Member Avatar for flyingcurry

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: …

Member Avatar for flyingcurry
0
174
Member Avatar for bangor_boy

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 …

Member Avatar for Ezzaral
0
143
Member Avatar for LianaN

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("Начальная страница"); …

Member Avatar for NormR1
0
178
Member Avatar for javadumbass

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? …

Member Avatar for javadumbass
0
1K
Member Avatar for Toddras

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.

Member Avatar for Ezzaral
0
41
Member Avatar for Shotty

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 …

Member Avatar for Shotty
0
258
Member Avatar for NewOrder

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 …

Member Avatar for NewOrder
0
105
Member Avatar for LianaN

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, …

Member Avatar for Ezzaral
0
146
Member Avatar for LianaN

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); …

Member Avatar for adams161
0
531
Member Avatar for smoothe19

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): …

Member Avatar for Akill10
0
586
Member Avatar for josiefrut

Hi guys, Does anyone know how to hide a toolbar (file toolbar) in pdfbox using java api? really need help.. Thanks!

0
74
Member Avatar for mathewmoozh

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

Member Avatar for sourcebits
0
81
Member Avatar for esy928

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 …

Member Avatar for NormR1
0
2K
Member Avatar for sivaprakashm

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 ....

Member Avatar for jon.kiparsky
0
74
Member Avatar for beginner21

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 …

Member Avatar for masijade
0
130
Member Avatar for extemer

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

Member Avatar for extemer
0
12K
Member Avatar for daudiam

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] …

Member Avatar for ~s.o.s~
0
208
Member Avatar for miraj0072004

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 …

Member Avatar for masijade
0
119
Member Avatar for NewOrder

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. …

Member Avatar for NewOrder
0
100
Member Avatar for knasha

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

Member Avatar for stultuske
0
128
Member Avatar for Pushpasheela

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; …

Member Avatar for DeadSoul
0
1K
Member Avatar for rayden150

im using eclipse helios and i seem to not have the .scanner function, can someone please help

Member Avatar for extemer
0
6K
Member Avatar for acash229

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

Member Avatar for NormR1
0
124

The End.