Skip to content

Tag: java

Can someone help me with my homework – Implementation of findMedian(…)

Problem I have a task that reads as follows: Implement an IntegerList class with a Vector list object attribute that contains a collection of integers. Implement the findMedian () method which, for a given object from o of the IntegerList class, returns a number m from the vector o.list such that there are at…

How to check if two rectangles collide over the axis

I think I’ve got some kind of duplicate question, but I just can’t figure it out. So I got a Region class. This class contains four attributes. aX, aY and bX, bY. Now I want to produce a method doesCollide(Region other). I’ve tried many things, but can’t get it to work. I think it is, …

Reading and print 2D matrix (array) to console from created File | Java

Necessary create a 2D matrix (array) sizes m*b: Filled in by manually, found Null, print results Filled in by automatically: create a File -> record File.txt read in created File.txt found Null print results I used public static readMaze from here – https://stackoverflow.com/questions/41632526/readin…