32,204 Topics

Member Avatar for
Member Avatar for ynwa

Hi, My code is organized in the following way projectFolder/source/all .java files and projectFolder/classes/all .class files The class path is set to project/classes Now when i compile my Main.java class from source folder, a Main.class is generated in classes folder. Now when i try to run the program using java …

Member Avatar for ynwa
0
227
Member Avatar for ynwa

Hi, I am a java newbie. I am getting the following error in eclipse. Exception in thread "main" java.lang.UnsatisfiedLinkError: no swt-cocoa-3557 or swt-cocoa in swt.library.path, java.library.path or the jar file I have the following jars in my library. _swt-cocoa-32 _swt-cocoa-64 swt-cocoa-32 swt-cocoa-64 swt-gtk swt-gtk-64 swt-win Can anybody help me ? …

Member Avatar for peter_budo
0
885
Member Avatar for us0343

hi All, I've just start java have a problem with compiling an Application. First i done Coding : [CODE]/* This program Will take two arguments Hello world from the command Prompt and prints them to standard console. If you specify less then two arguments an exception Will be thrown*/ public …

Member Avatar for peter_budo
0
182
Member Avatar for Nathan_11

i have code using method yet i could not make it work.. Can someone help me.. Thank you. package scsiaug10; import java.io.*; public class Main { public static void main(String args[])throws IOException{ BufferedReader read = new BufferedReader(new InputStreamReader(System.in)); System.out.print("Enter a Word:"); String s = read.readLine(); char c[] = new char[s.length()]; …

Member Avatar for Nathan_11
0
135
Member Avatar for DragoDraco

Here is the code I have so far and when I compile it I get errors import java.io.File; import java.io.FileNotFoundException; import java.util.Scanner; public class Bible2a { public static void main ( String [] args )throws FileNotFoundException { Scanner dataFile=new Scanner(new File("test.txt")); /*int colonPosition = verse.indexOf(':');*/ while(dataFile.hasNextLine()) { String verse = …

Member Avatar for DragoDraco
0
152
Member Avatar for developers.comp

My problem is let suppose my dataset is {A,B,C,D,E} and suppose my partition size is (2,3) Result would be (A,B) (C,D,E) (A,C) (B,D,E) (A,D) (C,B,E) (A,E) (B,C,D) (B,C) (A,D,E) (B,D) (A,C,E) (B,E) (A,C,D) (C,D) (A,B,E) (C,E) (A,B,D) (D,E) (A,B,C) I need to print all the possible combinations for the partition …

Member Avatar for Taywin
0
206
Member Avatar for nilay84

Hi Everyone, Is there anyone who can help me with Ordered Binary Decision Diagrams in Java. Do you know how to draw a simple Ordered Binary Decision Diagram usinh Java? Any help will be appriciated. Thanks

Member Avatar for Taywin
0
299
Member Avatar for Mi_99

This calculator performs two digit task successfully but what do i need to alter it i want it to evaluate 3 digits [CODE] public class Calculator { private long currentInput; //current input private long previousInput; // previous input private long result; // result of calculation private String lastOperator = ""; …

Member Avatar for sirlink99
0
186
Member Avatar for johnarzoneecho

Allow me to ask you about the project that I'm working.Send me some important ideas that helpful please!! My project is all about different system.

Member Avatar for Ezzaral
-2
166
Member Avatar for Armanious

Hey, everyone. My goal here is to be able to load a 3x4000*4000 multidimensional array, modify it, save it, and QUICKLY access it (as if accessing a 100x100 array). I'm not really sure how this works in the JVM but...I mean I'm at a loss. Would making a single int[] …

Member Avatar for Armanious
0
171
Member Avatar for harsimran05

when i am trying to use delete button on my frame it is showing such exception and stack trace is here java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer at MyFrame.actionPerformed(AcctHld.java:225) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253) at java.awt.Component.processMouseEvent(Component.java:6099) at javax.swing.JComponent.processMouseEvent(JComponent.java:3287) at java.awt.Component.processEvent(Component.java:5864) at java.awt.Container.processEvent(Container.java:2109) at java.awt.Component.dispatchEventImpl(Component.java:4460) …

Member Avatar for harsimran05
0
343
Member Avatar for maverick420

I want the to calculate the value of user input by multiplying the number by it the increment i.e. if input is 5 then calculation should be 5*1*2*3*4=120, I have tried but so far not successful any help will be appreciated. The code is below: [CODE] import java.util.Scanner; public class …

Member Avatar for Prateek nandan
0
254
Member Avatar for konman795

Hi everybody, I have been having trouble with the output of a set of points for my triangle program. When I run my program, it outputs in the end "triangle1 coordinates: Vertex A is java.awt.Point[x=12,y=13]" and I have no idea how to format it to hide the "[B]java.awt.Point[/B]" part. Any …

Member Avatar for konman795
0
315
Member Avatar for Onlineshade

What is Socket Programming in Java? Please give me some idea about it.

Member Avatar for Taywin
0
76
Member Avatar for kushashok

[code]import java.util.Scanner; class example{ public static void main(String args[]){ Scanner in = in.next(.charAt(0)); char ch=''; if(ch>='A'&& ch<='Z') { System.out.println("the character is uppercase"); } else if(ch>='a' && ch<='z') { System.out.println("the character is lowercase"); } else { System.out.println("some special character"); } } }[/code] plz tell me the way to accept a character …

Member Avatar for mitchiexlolz
0
142
Member Avatar for jinglylime

Hi I'm new to GUI. Ive created a calculator but i dont know how to get the number from the textfield and calculate the answer. Can u suggest ways i can do this. Thankyou.

Member Avatar for peter_budo
0
60
Member Avatar for pits
Member Avatar for hfx642
0
97
Member Avatar for getmet

I created a quote generator and when i click on a person's name, it prints out a random quote of theirs. Now the person has 20 quotes all stored in its own array. How do I get it to print out random quotes tat have not been used, once tehy …

Member Avatar for JamesCherrill
0
89
Member Avatar for vbengcolita

for serious thing , I have one question can someone explain or prove this : 22 divided by 16= 10 modulo 23. the answer must be 10.

Member Avatar for peter_budo
0
171
Member Avatar for vijaykavin10

[code]import java.awt.*; import java.applet.*; import java.awt.Event; import java.awt.event.ActionListener; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; //private Connection connection=null; //private Statement st=null; //private ResultSet rs=null; public class Example extends Applet implements ActionListener,Connection { public void init() { Connection con=null; Statement st=null; ResultSet rs=null; String qa="insert into demo1 values(' ',' ',' …

Member Avatar for peter_budo
0
405
Member Avatar for udayangaS

hi, Im am new to smack-api and im going to create a xmpp client for voice chat using smack-jingle extension.in here im gonna use ICE transport with customized Jingle media manager. problem is. smack jingle extension doesn't have proper documentation for making voice call using Jingle protocol and also the …

0
127
Member Avatar for Onlineshade

I want to do a project on Java. But I do not have any idea net based application in Java. I mainly want to do an application like messenger in Java. I had done a GUI application in Java using My SQL database server. But now how can I start …

Member Avatar for Onlineshade
0
158
Member Avatar for harsimran05

i have a program that has a database in access and i want to update data but when i click on update button on my frame nothing happens no error no exception and no work. here is my code [CODE]bUpdate=new JButton("Update"); bUpdate.setBounds(275,600,100,50); c.add(bUpdate); bUpdate.addActionListener(this); public void actionPerformed(ActionEvent ae){ Object o=ae.getSource(); …

Member Avatar for peter_budo
0
102
Member Avatar for techyworld

Given the coin denominations 1, 3, and 5, what is the minimum number of coins needed to make change for a given value? Hint: Value 1 2 3 4 5 6 7 8 9 10 Min. no. Coins 1 2 1 2 1 2 3 2 3 2 Parameter to …

Member Avatar for techyworld
0
273
Member Avatar for andimiami

I am writing a Java program, and I need to be able to call these two methods, but I'm kind of confused. These methods need to be able to match the following data: This would be a sample input if what I am checking... LASTNAME "Rosemont" # LASTNAME "Rose Mont" …

Member Avatar for andimiami
0
115
Member Avatar for schoolboy2010

Hi, could someone tell me what's wrong. The code works for the data set, answers but doesn't for data set answers2... the program crashes after displaying the data set2 and never gets data set 3, I will appreciate any help. Thanks. [CODE] import java.io.*; import java.util.Scanner; import java.util.*; import java.lang.*; …

Member Avatar for schoolboy2010
0
204
Member Avatar for supersport

i have to write a program for generating 20 tosses of a die and then grouping them by placing parentheses around them like this: 1 3 ( 2 2 ) 3 5 2 ( 6 6 ) 5 ( 1 1 1 ) ( 4 4 ) 2 3 ( …

Member Avatar for inthearmynow99
0
1K
Member Avatar for mohamed moamen

how i can convert my java code I do to a setup program work in other computer with example and please don't tell me use java launcher

Member Avatar for mohamed moamen
0
126
Member Avatar for SarahEng

Hello All , I work in project make share screen and remote access between client and more viewers I have Some problems in this project first : sending image i use WCF to connect client with viewers and achieve that more viewer can see and control the client screen second …

0
46
Member Avatar for J-Dub

I am trying to load a background in full screen mode, but when i run my program the screen is just white. Can someone point me to the reason why? [CODE]import java.awt.*; import javax.swing.*; public class DrawComponents { GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice device = env.getDefaultScreenDevice(); GraphicsConfiguration gc = device.getDefaultConfiguration(); …

Member Avatar for sirlink99
0
255

The End.