#java tutorials
Explore tagged Tumblr posts
mypatrolobservation · 1 year ago
Text
Java is a programming language and computing platform first released by Sun Microsystems in 1995. It is a class-based, object-oriented language that is designed to be portable, meaning that Java code can run on a wide variety of hardware and operating systems. Java is widely used to develop enterprise-level applications, mobile apps, video games, and other types of software.
0 notes
ivccseap · 2 years ago
Text
Assignment Operators
Java Tutorial
View On WordPress
0 notes
agatedragongames · 2 months ago
Text
Tumblr media
Learn how to explore a grid and find a goal point with breadth first search in this pathfinding tutorial. You will use Processing and Java to code the breadth first search pathfinding algorithm and create a graphical demo so you can see it in action.
Tumblr media
In the last tutorial, we programmed depth first search and watched it explore a node graph. In this tutorial we will program breadth first search and watch it explore a grid.
The breadth first search algorithm will add every unexplored adjacent node to a queue, and explore all of the added nodes in sequence. For each node explored, it will continue to add the adjacent unexplored nodes to the queue. It will continue to do this until the goal is found or all connected nodes have been explored.
18 notes · View notes
jackhelps · 2 months ago
Note
jack, como você conseguiu o javascript? demorou muito tempo?
Eu mandei uma solicitação pelo suporte seguindo esse tutorial aqui. É importante você seguir direitinho e ter o link da página que quer usar. Mandei a solicitação no dia 03/02 e no dia seguinte eles me enviaram um email pedindo pra especificar:
O código que quero usar + a url da página onde o erro aparece. Aqui eu peguei a página do pastebin da página que queria, e o link da página de customização onde eu tentava usar e recebia o erro de javascript. Eu sugiro que você use a mesma página que enviou no ticket inicial pro suporte.
A url da página onde eu quero adicionar um código com javascript. No caso do diretório, eu enviei https://jackhelps.tumblr.com/diretorio. Não enviei todas, só uma pra cada blog que pedi pra liberar.
O motivo de eu precisar usar um código com javascript. Eles pedem pra especificar como esse código vai melhorar a experiência pra você e pra outros usuários. Expliquei que gostaria de ter uma página com a possibilidade de filtrar o conteúdo dela pra facilitar para os usuários que usam o meu diretório. Sugiro explicar com detalhes pra ter mais chances de liberarem.
Eu só vi esse email dois dias depois, respondi com todos os detalhes pro meu tumblr principal e para os dois sideblogs. Recebi o email avisando que eles liberaram javascript pra mim no dia 15/02, mas só liberaram em dois dos três blogs que pedi. Foram umas duas semanas ao todo, então. Esse processo todo foi em inglês, e não sei qual foi o critério pra não liberar pra um dos três, já que eles não explicaram. Também não acho que é uma garantia, eu já fiz esse mesmo processo pedindo javascript pra outro blog, e não recebi resposta nenhuma. Ah, e no primeiro email de confirmação de que receberam o seu ticket eles também avisam que pode demorar bastante tempo pra responderem a solicitação, então acho que o tempo pode variar.
Tumblr media
8 notes · View notes
mellohd · 1 year ago
Text
hey guys so im finally putting actuall thought into one of my crossover aus heres some “thumbnails” and doodles i did. im calling it MergePoint
Tumblr media
Yes its book simon! the entire page except for David, ill explain better in a separate post probably but heres my logic:
Theres simon before the crash, Book Simon, And real Simon(Sick Simon). The bloody version we see is book Simon after he goes through the events of the story. So hes like progressively getting more bloody. This just a short explanation ill make a separate post i swear
As for the AU the gist of it is basically a shit ton of characters were spat into this one big unstable universe thats a mixture of vast blank white void, settings from their home universe and other things. thats kinda like a general idea of it theres more to it but i dont want to explain too much on this post (⇀_↼)
youll catch me DEAD before i stop making 50+ crossover aus
closeups:
Tumblr media Tumblr media Tumblr media
44 notes · View notes
redfoxbytes · 3 months ago
Text
Java
Eines meiner ersten Codes die ich in Java geschrieben habe, war das hier:
public class JunusVideo { public static void main(String[] args) {
String name = "Mulder"; String beruf = "Programmierer";
gruss(19);
System.out.println("Ich heiße " + name + " und Arbeite als " + beruf + "."); }
public static void gruss(int hour) {
if (hour < 12) { System.out.println("Guten Morgen!"); } else if (hour < 18) { System.out.println("Guten Tag!"); } else { System.out.println("Guten Abend!"); } } }
Das erste was ich getippt habe und verstanden habe. Ich war sehr stolz darauf. :) Vor allem, weil ich ihn etwas anders gemacht hatte, als im Tutorial und sehr stolz darauf war.
Apropos Tutorial, gelernt habe ich von Junus auf Youtube. Tolle Videos. Sehr einfach erklärt. Kann ich jedem wärmstens ans Herz legen, der erst einsteigt.
youtube
2 notes · View notes
quinoa-adjacent · 1 year ago
Text
Despise coding tutorials that spend 30 minutes explaining what a videogame or coding language is
I Don't Care
How Do I Create A Window
9 notes · View notes
frog707 · 2 years ago
Text
refactoring
I lied when I said I was going to work next on loading a 3-D model. Sorry, old habit! Actually, I went straight into refactoring. Let me explain...
The English Wikipedia defines refactoring as "the process of restructuring existing computer code . . . without changing its external behavior", which is fairly accurate, though lacking in motivation.
My back-of-mind definition would be "changes to code whose primary purpose is not to add features or solve issues, but to make the codebase easier to maintain".
Back when I worked for corporations, I got in the habit of never mentioning refactoring around anyone who wasn't a software developer. If my boss (or my boss's boss) knew I was making changes (and spending work hours) on something other than approved features or known issues, awkward questions would arise. (Like, do we have a billing code for that?)
Anyone who's worked intimately with a large software project knows that if changes are made only for features and issues, the project will accumulate "technical debt" that makes it difficult to maintain: hard to explain/learn/understand/remember how it works and hard to make changes without introducing bugs.
Both of today's refactorings focussed on the BaseApplication class, which became unwieldy weeks ago. Last night the source file for the class reached 1901 lines of Java code (not counting blanks, comments, and javadoc). I don't place a hard limit on lines of code in a class, but a file containing 1901 LoCs positively screams technical debt. It's especially painful these days, since I'm working on a laptop with a tiny screen and using a track pad instead of a mouse. (I spend lots of time scrolling back and forth, hunting for the lines I need to change.) Cramming as much as possible into a single file makes some sense for a tutorial, but I see the V-Sport project as something I'll be maintaining for many years.
First I split off all the code that deals with physical devices and put that in a new PhysicalDevice class. The change greatly clarified which properties of the physical device matter and how that information is accessed.
Then I split off all the code that deals with texture data into a new Texture class. The new class bundles up 3 related Vulkan resources and provides a clear lifecycle of create/use/destroy. I expect it to minimize duplication of code when the project transitions (sometime in the near future) from a single texture to multiple textures.
I'm subjectively pleased with how smoothly today's refactoring went. One measure of its success is that BaseApplication shrank from 1901 to 1650 lines of code. Still plenty of room for improvement, though!
26 notes · View notes
777cyb3rkitty · 2 years ago
Text
♡ how to make mob skins into resource packs minecraft java ♡
here's a super easy tutorial on how to add mob skins to ur game just like any other texture pack! (for java) (❀❛ ֊ ❛„)
first, open ur minecraft launcher. press on installations and find the game version you're using, (for example I'm using forge 1.18.2-forge-40.2.9). if you hover over it, next to the green play button should be a folder icon.
Tumblr media
click the icon and find the folder titled 'versions'. click on your version of minecraft, (for example mine would say forge 1.18.2-forge-40.2.9). and click on it! inside should be a .jar file with your minecraft version.
Tumblr media
while keeping this tab open, create a folder on your desktop called minecraft mob skins and COPY and paste the .jar file inside. rename and change the .jar to .zip (you can now close the versions window).
Tumblr media
open the zip file, it'll be easier in a new window (right click and press open in new window) and type pack in the search bar, find the file named pack.png (keep the tab open).
now going back to the minecraft mob skins folder we made, create a new folder called texture pack preset, open this folder and copy and paste the pack.png file inside.
we now have our resource pack icon that will show up in game ! ♡₊˚ 🦢・₊✧
next we need the pack.mcmeta file with our minecraft version so download that here!
once downloaded, drag and drop into your texture pack preset folder.
now, still inside the texture pack preset folder, create a folder called assets. inside that make a folder called minecraft then inside that textures and inside that entity. like this, assets > minecraft > textures > entity
YAYY we now have a preset folder that can be used for every mob!! *:・゚
Tumblr media
now back out of that and create another folder inside minecraft mob skins. name it after the mob you want to re-skin. (for example, cow, enderman, axolotl etc…)
inside of that create a folder and name it whatever you want. i always name mine the same name as the skin i want to use. for example 'toasted marshmallow golem'. (this is a super cute skin for your snow golems btw!) to make things easier I'll refer to this folder as the skin folder.
leaving the skin folder we just created open, go back to your desktop and click on minecraft mob skins. open up the texture pack preset folder and copy all the files inside, (assets, pack.mcmeta and pack.png should be highlighted). go back to the folder you have open and paste. (you can now close texture pack preset but keep still keep the skins folder open).
go back to your desktop and open minecraft mob skins again. click on the zip folder we pasted earlier with your game version, (open as a new window), and press on assets > minecraft > textures > entity, and find the mob you want.
at the top you'll notice the file path is exactly the same as our assets folder! that's because literally all you're doing is copying the exact file path so that minecraft can read it!
this means that if your mob has a folder with it's name on it, (for example assets > minecraft > textures > entity > goat) you'd create another folder named goat inside the entity folder YOU created
once you've found your mob or mob folder you should see one or multiple .png files.
Tumblr media
if you only have one .png file (for example goat.png), then all you're going to do is rename the skin you want to use to goat.png and move it into the entity or mob folder YOU created.
(you can also keep a copy of the skin and keep it in your skins folder).
if you have two or more .png files (for example strider.png, strider_cold and strider_saddle or skeleton.png, stray.png, stray_overlay.png and wither_skeleton.png) then it's very simple.
with the strider example, strider.png would be your default strider when it's in lava. the strider_cold would be when it's on land and as the name implies 'cold', (which gives it a paler complexion). and strider_saddle.png is where a saddle has literally been pixel painted onto it.
if the skin you wanted to use only had one default .png file available yet you want for example the strider_saddle version, then you could open up the skin image in planetminecraft's PMCSkin3D or novaskin (which are both on browser) and to make it yourself!
if the skins resolution isnt too high it shouldn't take long, just search on google images, for example 'minecraft strider saddle' and try to copy it!
on the other hand, the skeleton example shows the different types of skeletons found, with stray_overlay refrencing the armour/apparel it wears.
if you come across a folder like rabbit which has black.png and brown.png etc… then all you have to do is name the skin you want to use as one of those file names, (for example black.png or brown.png), and it will replace that colour rabbit.
once you've renamed your skin to the file or files shown and made sure you've used the correct file path you're 80% done!!!
Tumblr media
you can close the zip and back out of entity/your mob name folder till you can see assets, packmcmeta and pack.png
you'll need to download Notepad++ so you can edit the code in pack.mcmeta
once that's downloaded right click on pack.mcmeta and press edit with Notepad++ where it says description in quotation marks, type whatever description you want, (for example, "mossy axolotl by MeNylo"), and make sure pack_format is correct for your version. the pack_format for my version 1.18.2 is 8. it should be correct but just in case!
Tumblr media
check here!
now press file and save!
if you'd like the resource pack to have a different icon I'd recommend downloading paint.net
click where it says, Get it now (free download):paint.net 5.0.7or whatever version it says.
now right click pack.png and press open with paint.net to make a quick icon I use the snipping tool to cut an image of the mob, remove the background with
and paste that image to
where i made the pic cuter.
then going back to pack.png, open it up in paint.net and press on file then open the image you made. this will put it in a new tab which you then press edit and copy onto your pack.png image. make sure to paste into new layer and press keep canvas size!!!
zoom out a little as pack.png is quite small and scale the image you made so it lines up with the pack.png image. now press save as and save to your skin folder. make sure it's .png!!!, (when it asks you if you want to replace the previous pack.png file say yes).
press OK and it will ask if you want to flatten which you say yes to. and your folder is all done!!!!!!!!!
the resource pack now has a custom image.
finally you just highlight all three files, assets, pack.mcmeta, pack.png, right click and press send to compressed zip folder. (i usually name it the name of the skin).
Tumblr media
if you can't see the zip option just press show more options and it'll be there. ˶ᵔ ᵕ ᵔ˶
LAST STEP, copy and paste the zip folder into your minecraft resource pack folder (don't unzip) and load up your game!!! now just do the usual, open your game world > esc > options > resource packs and if it worked you should see the resource pack with the description and icon you set. add it and you're all done!<3 if this was helpful please save this for reference ♡
Tumblr media
/ᐢ⑅ᐢ\ ♡ ₊˚ ꒰ ˶• ༝ •˶꒱ ♡‧₊˚ ♡ ./づ~ :¨·.·¨: ₊˚ `·..·‘ ₊˚ ♡ also i use
& for my snow golem/pumpkins
‎♡‧₊˚🍓
‎♡‧₊˚🍓thanks for reading!! good luck 🍵 ⋅* ‧₊
25 notes · View notes
minitt-personal · 10 months ago
Text
hot take
apart from the UI being based on pocket edition, i think bedrock is a neat successor to legacy console.
2 notes · View notes
arshikasingh · 1 year ago
Text
Tumblr media
String Concatenation by concat() method
In Java, you can concatenate strings using the concat() method. This operator allows you to join two or more strings together. Here's how you can use it:
3 notes · View notes
ivccseap · 2 years ago
Text
Java Project Ideas
Java Project Ideas
View On WordPress
0 notes
agatedragongames · 1 month ago
Text
Tumblr media
Learn how to generate a hexagonal grid, create walls, connect the hexagonal cells and render the cells in this Processing tutorial, using the Java programming language.
Tumblr media
14 notes · View notes
neverendingford · 1 year ago
Text
.
#tag talk#I feel good cause a new friend at work said something about how my boyfriend hasn't talked much to him since meeting me#And I was like uh oh I do not want to be that bitch#and I know he's been trying to organize some kind of game might and I was like rip you can't get him to play stardew valley with you#and I don't like stardew valley so I was like hey what about minecraft? because if I get them playing together on a realm then It's fixed#so anyway now I might have a new server and friend group to play with and hopefully I'll be less in the way of the preexisting friend group#because I'm really conscious of when I'm the reason stuff goes poorly so I don't wanna be a reason friends don't hang out anymore.#cause that shit sucks. jealous girlfriend type can go die I ain't about hogging people I don't feel good about it.#I just want everyone to get along and be friends#I'm putting in the work to learn bedrock mechanics. that's how committed I am to this. I hate variations on an established base.#it's the autistic in me for sure. I loathe multiple versions of songs. there can only be one true version. one right answer. all else is bad#so the slight discrepancies between bedrock and Java drive me absolutely nuts bonkers up the wall#I read a really good twilight fanfic and it rewired my brain and now I'm forever mixing up which is cannon and which is fanfic#because my brain immediately booted the version I preferred less and installed the new fanfic version as the correct right version#anyway. I'm hunting tutorials that actually explain the mechanics and taking notes so I know how to adjust the designs for aesthetics#because you need the minimum mechanical base to work before you can ad lib a building style and design onto the structural framework#I figured out the iron farm mechanics so tomorrow I think I'm gonna work on gold farm stuff. and redstone I just want to learn myself
2 notes · View notes
im-still-a-robot · 2 years ago
Text
Hnnngb <trying to code a neocities page
3 notes · View notes
tpointtech1 · 8 days ago
Text
Common Mistakes When Initializing Arrays in Java and How to Avoid Them
Learn the common mistakes developers make when initializing arrays in Java and how to avoid them. Master proper array initialization techniques and write cleaner, error-free Java code with this beginner-friendly guide.
1 note · View note