32,199 Topics
| |
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 … | |
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 … | |
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 … | |
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); | |
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 … | |
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 … | |
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 … | |
**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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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( … | |
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 … | |
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 … | |
hello.. can php and java script exchange data?? | |
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} … | |
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 … | |
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 … | |
any one is here that explain to me that how to get console input using BufferReader in java and explain me its working briefly. | |
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 … | |
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 … | |
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 … | |
i want to give input like {a,b,c} and want o/p {{},{a},{b},{c},{a,b,c}} | |
What are the benefits that JVM brings to the development and deployment of server applications | |
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 … | |
hello everybody; up to what level can I use javascript (taking advantage of the strength of phonegap or Titanium) to create an android application. ex 1:can I create or run a service (in the android sense) !!! ?? or can I access to the GSM properties like provide package android.telephony.gsm. … | |
I'm having some issues with one of my bonus assignments for school. In my code the purpose of the project is posted, but this is what I have so far. /******************************************** *File Name: Combination (Assignment 8 Part 1) *Purpose: Create a frame with ten buttons, labeled 0 through 9 (Hint: … | |
So here's a bit about the details. I need to read the contents of file A, and B and store it in file C by joining the contents of A and B and also counting the number of letters/characters present in it. I've come up with this so far. Can … |
The End.