35,618 Topics

Member Avatar for
Member Avatar for Slavi

Well, the title says it all. Imagine that I have HelloWorld.java , I want to create an executable jar from it. I know that if I use IDE such as eclipse I can create it there but how can you create it without that?

Member Avatar for stultuske
0
184
Member Avatar for beqa2323
Member Avatar for Zachary_1

Please help. I wrote a quicksort with a median of either 3 or 5 to be the pivot and I can not figure out, for the life of me, why my code won't run. If the boolean isMedOf3 is true, then the partition uses a median of 3 to choose …

Member Avatar for JamesCherrill
0
1K
Member Avatar for moaz.amin.37

i have a problem with code below import javax.swing.*; class HelloWorld { public static void main(String x[]) { JOptionPane.showMessageDilog(null,"Welcome","Bscs",1); } } i try my best but i can not understand the following error HelloWorld.java:5: error: cannot find symbol JOptionPane.showMessageDiloge(null,"Welcome","Bscs",1); ^ symbol: method showMessageDiloge(<null>,String,String,int) location: class JOptionPane 1 error plz help …

Member Avatar for mKorbel
0
176
Member Avatar for hemp31

Hi everyone, this is my first post here. I am new to Java. I understand it when I see it, but writting it is difficult for me. That is for now. I am building an app, which is going to be a quiz. There are 10 questions with fur answers …

Member Avatar for stultuske
0
277
Member Avatar for soche123

How is it possible that if I type A in a textfield, that is added to String variable which is empty and I can then pass that string as a argument to a textfield for display what I typed. for example: String letter2=""; if(ke.getKeyCode()==KeyEvent.VK_A) letter2=letter2+"a"; btextfield.setText(letter2);

Member Avatar for mKorbel
0
162
Member Avatar for Vegito1991

I have assigned to create a multichat application that require to public message to all client, private message to certain client and show the user list, anyone can tell me which part should i do to implement private msg and online user list (where will show the name after client …

Member Avatar for stultuske
0
2K
Member Avatar for moaz.amin.37

postfix and prefix increment or decrement operators very very confusing for me i try my best but i can not understand the basic different between them plz help me i know The prefix form first performs the increment operation and then returns the value of the increment operation. The postfix …

Member Avatar for sepp2k
0
468
Member Avatar for Slavi

Some time ago, I wrote some code, which uses DFS to find whether there is a path from a source vertex to a destination vertex. However, I am thinking now what if there is more than 1 possible way? What comes to my mind is save paths in an ArrayList …

Member Avatar for Slavi
0
1K
Member Avatar for Doogledude123

**Sudoku Solver** I am writing a program to solve Sudoku Puzzles. This thread will contatin my progress throughout the project and hold any questions and replies.

Member Avatar for JamesCherrill
0
874
Member Avatar for moaz.amin.37

what is command line argument in java and how it is work public static void main(String []args){ for (int i = 0; i < args.length; i++) System.out.println(args[i]); and what is .length in upper code. is it function no it is not function is it class no it is not a …

Member Avatar for stultuske
0
516
Member Avatar for soche123

hi guys, hope you are doing very well. I've been working on a program that if I enter lowercase letters in one textField the other should display it in capital letters with the help of Event Handling but I am constantly getting these two errors. I'm a beginner so would …

Member Avatar for JamesCherrill
0
265
Member Avatar for Sar_1

I am trying to build a java program for user login but I am not sure if my MVC design is accurate. I have the following classes: LoginControl - servlet LoginBean - data holder java class with private variables getters and setters LoginDAO - concrete java class where I am …

Member Avatar for JamesCherrill
0
181
Member Avatar for Yorkiebar14

Hello, I am trying to receive the documenttext of a web browser after the user has clicked a javascript button which loads more information on to the page. Instead of getting the new code, it simply gives the original code which was given once the page was loaded. Any help …

0
86
Member Avatar for edygraca

Hello guys, How to Eliminate ifs and elses using polymorphism, so that the code is more compact and easy to understand. public void update( ){ // is its dead it does nothing if( dead ) return; // see what movement it is doing int dy = rising? -6: 6; if( …

Member Avatar for JamesCherrill
0
176
Member Avatar for bharatgs7

I have designed the jasper report in iReport and integrated it with jasper server. It works perfectly. But I am facing problem with my next requirment. I need to integrate the same report with my jsp application. I meant I am not getting how to integrate this report in eclipse …

Member Avatar for milil
0
178
Member Avatar for LVZombie

Hello all, I am working on assignment for class and I thought I had this one but something is wrong. This is an inventory control program that needs to display 7 items with the item number, name, number in stock, price and value. The program works for item 7 but …

Member Avatar for LVZombie
0
583
Member Avatar for shivakr

i am lerning advanced java so while practising the jstl topic i get this error on the eclipse browser... i had deployed the "jstl1-2.jar" then also this error is comming can anyone help me to find out what is the reason behind this HTTP Status 500 - The absolute uri: …

Member Avatar for peter_budo
0
245
Member Avatar for ShadowFox88

The system is able to find grade for each course based on final marks, calculate GPA, Calculate CGPA. Methods (menu); i. Input matric_number, name, coursecode, credithours, semester, final marks for each subject. You may use text file ii. Calculate GPA and CGPA for each student. iii. Search a student record …

Member Avatar for stultuske
0
3K
Member Avatar for ankit1122
Member Avatar for harish_peram

hello can somebody write a code for this array list in java I want the output as required there is a array list of 1,2,3 and to this {1}-->{4}-->{9} = {1,4,9} , {2}-->{5}-->{10} = {2,5,10} and so on {1,2,3} {4,5} {9} {10} {6} {11} {7,8} {12,13} {14,15} output : {1,4,9} …

Member Avatar for JamesCherrill
-1
101
Member Avatar for rnjreddy

double[][] a= new double[5][5]; int i,j; int [] controller= new int[5]; Random rand=new Random(); for(i=0; i<5; i++ ) { for(j=0; j<5; j++) { do { a[i][j]= rand.nextDouble(); if(a[i][j]>0.0) controller[j]++; System.out.println("a[" + i + "][" + j + "] = " +a[i][j]); }while( controller[j]==3); } } /* I create some random …

Member Avatar for rnjreddy
0
133
Member Avatar for toring

Hi, I need some help please I am still learning java,How can i convert infix to posftix using BST?...so far this is what i have got. Thank you in advance. `package com.binarysearchtree.BSTNode; class Node { private Object item; private Node next; public Node(Object item,Node next) { this.item = item; this.next …

Member Avatar for toring
0
174
Member Avatar for moaz.amin.37

any one is here that explain to me that how to get console input using BufferReader in java and explain me its working briefly.

Member Avatar for moaz.amin.37
0
408
Member Avatar for Junk_1

I have a problem with `asynctask` in android Java. it's the same problem as this : http://stackoverflow.com/questions/15457482/variable-returns-null-outside-asynctask-android my asynctask get data from a url , to get direction of `google maps` ! This is where I call my code , inside onrespondre => myvaraible have data but outside the variable …

0
124
Member Avatar for gear762

I have a rectangle "ball" that is striking another rectangle "b1". I'm trying to make b1 the color of the background and not able to be hit by the ball object anymore, but I don't know how to do that and I couldn't find anything online. Any help is greatly …

Member Avatar for mKorbel
0
218
Member Avatar for shomy

Hello I have final project for java and I didn't know how to do it >< may help me to solve it?! ------------------- Consider the following table about students’ grades for quizzes in class : http://s8.postimg.org/a9sqir7md/Screenshot_2014_05_28_11_26_53.png 2 Write a Java application that calculates the minimum, maximum, and average for each …

Member Avatar for shomy
-1
286
Member Avatar for gaurav_17
Member Avatar for JamesCherrill
-1
94
Member Avatar for Muni123
Member Avatar for JamesCherrill
0
101
Member Avatar for GRENDY

hi everyone im studing computer science , i have question about margeSorting i do not undrstant how it going ??? i do not know where i shold put my question public static int[] mergeSort(int[] a) { if (a.length == 1) { return a; } else { int n = a.length …

Member Avatar for stultuske
0
156

The End.