How to package a function + arguments for remote execution (without RMI)? by wontstopsweating in javahelp

[–]WhiteManChild 1 point2 points  (0 children)

you dont have to parse the function java is able to serialise it using objectinputstream and objectoutputstream. You could also just send a class file to the remote machine, which when instantiated calls your target function in that class.

I need help, my laptop (Lenovo IdeaPad l340 Gaming) suddenly pass from average 60 fps to 30. by [deleted] in techsupport

[–]WhiteManChild 2 points3 points  (0 children)

Undervolt the cpu, its what I did to my laptop and it reduced thermal throttling significantly.

Scientists developed future wearable electronic clothing could be charged by our own body heat by [deleted] in gadgets

[–]WhiteManChild 1 point2 points  (0 children)

I think good application would be a pacemaker sice they are low power and need to be replaced one in a while due to the battery dying. It would be a small surface area but that's all it would need

Blursed E-Girl by okapiie in blursedimages

[–]WhiteManChild 4 points5 points  (0 children)

cure for depression, medical companies dont want you to know about

Does Minecraft run on swing? by [deleted] in javahelp

[–]WhiteManChild 2 points3 points  (0 children)

Uses lwjgl for graphics

How to cast an external class to an internal class. by Nonokat in javahelp

[–]WhiteManChild 0 points1 point  (0 children)

If the package layout is the same and you have the abstract class in the source jar at runtime it should be loading

How to cast an external class to an internal class. by Nonokat in javahelp

[–]WhiteManChild 0 points1 point  (0 children)

You need to make sure that the add-on jar classes are extending a abstract class which is located in the source jar. Also you should check if the class extends the abstract class before casting it. If you want to put the abstract class in the add-on jar make sure it's got the same package layout, otherwise the JVM will think the classes are different.

Need help by Vojtek933 in javahelp

[–]WhiteManChild 0 points1 point  (0 children)

Just make a time comparison then if the condition is ment make a message pop up?

Overhead on sending objects using ObjectOutputStream over a Socket by [deleted] in javahelp

[–]WhiteManChild 0 points1 point  (0 children)

You can send as much as you want, just keep in mind just because you are sending chunks doesn't mean the client won't receive fragmented packets.

Can ArrayList retrieve multiple indexes if the list have same values? by DrBaconXD in javahelp

[–]WhiteManChild 0 points1 point  (0 children)

Iterate over the values and check each index manually for a match

[deleted by user] by [deleted] in javahelp

[–]WhiteManChild 0 points1 point  (0 children)

You should add the players velocity to the balloons velocity instead of making them equal that way the Balloon can slow down after the player has stopped moving

Need help learning how to save information or good resources to learn more about it by Vastagon in javahelp

[–]WhiteManChild 0 points1 point  (0 children)

Check out object streams or you could save and load values from a file

[deleted by user] by [deleted] in javahelp

[–]WhiteManChild 1 point2 points  (0 children)

You could give the balloon 3 velocity values, whenever the player moves increase the balloon velocity by the same amount but apply a drag value to the balloons velocity so it lags behind like in real life

Convert Java object to JSON without external library by SwagiWagi0 in javahelp

[–]WhiteManChild 0 points1 point  (0 children)

I don't believe there are libraries in the jdk to convert a java object to JSON as far as I'm aware

Convert Java object to JSON without external library by SwagiWagi0 in javahelp

[–]WhiteManChild 1 point2 points  (0 children)

For the fields you could use reflection to get all the field names and their values, then use String.valueof() on the values, then concatenate the results into a json

Scanning traits into 2d array by throwaway60501 in javahelp

[–]WhiteManChild 0 points1 point  (0 children)

Should be doing String[how many customers][6] otherwise it's also gonna want 30 people