35,618 Topics

Member Avatar for
Member Avatar for scheppy

Hi Guys, Im currantly having a problem with simulating balls bouncing of each other in a 2d space, everything is working and all, but it just doesant seem natural for me... If we had any math wizzes here now is your time please:) my circles are painted inside of rectangles..... …

Member Avatar for scheppy
0
3K
Member Avatar for Luca_1

Hey guys, I am at the very beginning of learning Java and my task right now is to code a maze (2D Array) and let a bot automatically solve that maze using only the right hand rule. If I let the programm run it prints out an infinite number of …

Member Avatar for rproffitt
0
455
Member Avatar for Saboor880

Hi I have made a desktop application and i have to print some data to printer.For this purpose I have done my code and ran it successfuly and test on xps doucuments and on oneNote . I have no physical printer but i am satisfied by testing it on xps …

Member Avatar for rproffitt
0
322
Member Avatar for scheppy

Hi Guys Its me again, wasnt sure if i should start a new thread so i just did :) I completly redid the code Now im having a problem with the renderer again. It called called in the timer of the controller class... but it doesant get called? Also my …

Member Avatar for scheppy
0
465
Member Avatar for Joe_10

I am trying to follow the sample of the barcode reader from codelabs. However I am stuck, could someone help me out please. [Codelabs tutorial](https://codelabs.developers.google.com/codelabs/bar-codes/#0) I have updated the manifests to include the vision libaries. import android.app.Activity; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.drawable.BitmapDrawable; import android.os.Bundle; import android.util.SparseArray; import android.view.View; import …

Member Avatar for rproffitt
0
651
Member Avatar for scheppy

Currantly trying to make a simple game but i cant get the renderer to repaint. My problem is that i used to make everything in 1 class... much simpler. But now im just not sure anymore. This is what i have so far... it just wont repaint. (Note i have …

Member Avatar for scheppy
0
1K
Member Avatar for Saboor880

Hi! I have developed a desktop application in java. Now I want to do payment integration with this app. Actually I have to do payment integration for first time in my life. So i have some questions/confusions for payment integration. But before asking those questions I tell you that what …

Member Avatar for Saboor880
0
433
Member Avatar for Rafin Ishraq
Member Avatar for scheppy

Hi Guys Just starting to make my first java game, im getting a few errors. Im just trying to figure a few things about about the game loops before i get started and this is driving me crazy when i just call the renderer to repaint after i initialize the …

Member Avatar for scheppy
0
1K
Member Avatar for Addvantum
Member Avatar for John_165

Hi guys , is me again ! I get stucked on this question Write a program that read an integer and display its smallest prime factors in ascending order. For example, if the input is 60, the output should be 2,3,5... I came out with below code, but I get …

Member Avatar for rproffitt
0
408
Member Avatar for Prosatanos

It sorts names in ArrayList, but how exactly does it happen? public void sortStudentsAlphabetic() { int i, j; Student temp; Student[] array = new Student[studentsList.size()]; for (int k = 0; k < array.length; k++) { array[k] = studentsList.get(k); } for (i = 0; i < array.length - 1; i++) { …

Member Avatar for JamesCherrill
0
186
Member Avatar for John_165

Use a **for** loop to find the smallest integer n such that n^3 is greater than 1000 So I came out with below code public class Chapter4 { static int n = 0; public static void main(String[] args) { for (int i = 1; Math.pow(i, 3) <= 1000; i++) { …

Member Avatar for rproffitt
0
1K
Member Avatar for Bensaber

Hello, I'm new in java programming, i have insert amounts in database in this Format exp : 1.100.200,00 but the subtraction of this amount give false result . here is part of my code DecimalFormat df = new DecimalFormat(); DecimalFormatSymbols symbols = new DecimalFormatSymbols(); symbols.setDecimalSeparator(','); symbols.setGroupingSeparator(' '); df.setDecimalFormatSymbols(symbols); statement = …

Member Avatar for Bensaber
0
306
Member Avatar for ibenwa

hello please i need help, am writing a project to check if a particular folder exist in client system , if not let it create it, but if found let it delet it from client side immediately the client visit the site. i try this on my localhost it work …

Member Avatar for JamesCherrill
0
197
Member Avatar for laguardian

So, I've created a program that when a user inputs a type of vehicle, it will print how much will the user pay for their fare. Here's what I have so far: How do I call the methods Vehicle, Vehicle1, etc.. so that I am able to print the fare …

Member Avatar for stultuske
0
3K
Member Avatar for Megan_7

Draw a flowchart and write the pseudocode to represent the logic for a program that will open two files, input and output.

Member Avatar for stultuske
-3
165
Member Avatar for John_165

Write a program that displays all numbers divisible by 3 and 4 within a range entered by user. Display five numbers per line. Numbers are separated by exactly two spaces. This is my code public class Chapter4 { public static void main(String[] args) { Scanner input = new Scanner(System.in); final …

Member Avatar for JamesCherrill
0
2K
Member Avatar for overwraith

I have a question about the dining philosopher problem. This is not about homework. I seem to have solved it, does it actually relate to anything? Is there any software that actually requires it?

Member Avatar for rproffitt
0
196
Member Avatar for Gl753

I'm working on assignment that requires me to generate and store 50 random PPS Numbers in an array but I'm not sure as to how to go about doing this. Keep in mind that I'm not asking anyone to do this assignment for me, this is just the part I …

Member Avatar for Janko_1
0
3K
Member Avatar for kenneth_12

SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy"); Date date = sdf.parse(d); Calendar cal = GregorianCalendar.getInstance(); cal.setTime(date); for (i=0;x>i;i++){ cal.add(GregorianCalendar.DATE, 7); String t = sdf.format(cal.getTime()); DefaultTableModel model = (DefaultTableModel) jTable1.getModel(); model.addRow(new Object[]{t,c}); }

Member Avatar for Tarek_2
0
447
Member Avatar for alda_1

heyy can anyone please help me with this homework in java because i am new at this Create a program where it should appear in a dialog box your name,last name and the avarage of four exams :)

Member Avatar for Tarek_2
0
302
Member Avatar for divinity02

hi pple I am building this electronic role using an interface. during the course of designing the interface, tried running it just to see the look and feel of it and it is not showing can someone tell me why this happen. here is the code. havent start coding it …

Member Avatar for divinity02
0
3K
Member Avatar for Cj_5

Hi, first timer here so sorry before hand if I forget to mention something. My code run the window fine but when I hit the calculate button I receive an error message. Firstly this is my code package Chapter12; import javax.swing.*; import java.awt.event.*; public class TheaterGUI extends JFrame { JTextField …

Member Avatar for JamesCherrill
0
548
Member Avatar for coroll

Hi, I want to find all the words(scabble words) that can be made out of given set of letters. ex: abnana results: a aa ab an baa ban banana na nab How could i achieve this? Do i need a binary tree? Plz some one help me...

Member Avatar for JamesCherrill
0
2K
Member Avatar for Fen_1

I am working on implementing a binary search tree as an array implementation, but I am having trouble with correctly printing out all of the students' records using the showAll() method and my application also doesn't print out anything for the insert and fetch methods. What am I doing wrong? …

Member Avatar for JamesCherrill
0
403
Member Avatar for Saboor880

HI! I have made an desktop application, which i have to install on my client's pc. But I want that, except that particular cleint's pc, no other pc could run it. For this purpose i got a solution to get mac address of that pc and make a check for …

Member Avatar for stultuske
0
283
Member Avatar for skimmpy

how to reverse words in a sentence without using split or string tokenizer. I/p :- how are you O/p :- you are how

Member Avatar for stultuske
0
5K
Member Avatar for Dietrich_1

So I am confused as to how to generate random integers between a range, in the first one it says to make the range from 0 to n-1 and the precondition is that n has to be greater than 0. For the second import java.util.Random ; /** * This class …

Member Avatar for rproffitt
0
552
Member Avatar for overwraith

I am creating a reporting engine, it is kind of novel. **The only question I have is what are some of the wierder scheduling related things you guys have seen for you cyclical computer programs to date**. I am trying to cover as many fringe cases as I can, and …

Member Avatar for rproffitt
0
297

The End.