Compile & Run Java Programs representing class variables via Batch File | Void Method in java | cmd

Опубликовано: 09 Февраль 2023
на канале: Green Light Coding
107
11

Green Light Coding presents a new application only for programmers which show How to compile JAVA program using Batch Script Command Line.
Only type the filename to compile your java program

This time saving technique will be more useful & beneficial to use this application for those who do not use IDE.

So compile your code easily.

coding | java | batch script | batch file | compile | run
_____________________________________________________________
Stay connected to us for more necessary coding tricks like these.
_____________________________________________________________

#coding
#cmd
#java
#howto
#compilation
#codewithharry
#javaprogramming
#javatutorial
#python
#pythontutorial
#pythonprogramming
#mathematics
#probability
#highlight
#highlighter
#graphics
#graphicdesign
#editingapps
#editor
#editingtutorial
#editing
#applications
#file
#edits
#coding
#compile
#ctutorials
#cmd
#code
#batchfile
#learning
#info
#simple
#functions
#notepads
#console
#programming
#programminglife
#coder
#programmers
#important
#brightness
#updates


code:
::command to compile programs in java with batch script (modified)
@echo off
:l
title=COMPILER
set /p j=FileName:
echo code:
type %j%
echo.
echo output:
javac %j%
java -cp %cd% %j:~0,-5%
goto l

Java code:
class j1 {
int mass, volume;

void inputdata(int x, int y) {
mass = x;
volume = y;
}

void printdata() {
System.out.println("mass = " + mass + " & " + "volume = " + volume);
}
}

class j2 {
int length, breadth;

void inputdata1(
int x,
int y) {
length = x;
breadth = y;
}

void printdata1() {
System.out.println("length = " + length + " & " + "breadth = " + breadth);
}
}

class mv {
public static void main(String[] args) {
j1 m = new j1();
m.inputdata(76, 45);
m.printdata();

j2 n = new j2();
n.inputdata1(20, 10);
n.printdata1();
}
}


LINK FOR BATCH SERIES PLAYLIST :
   / @greenlightcoding613  
_______________________________________________________________

SUBSCRIBE FOR MORE UPDATES LIKE THESE
_______________________________________________________________
CHANNEL LINK :    / @greenlightcoding613  
_______________________________________________________________


На этой странице сайта вы можете посмотреть видео онлайн Compile & Run Java Programs representing class variables via Batch File | Void Method in java | cmd длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Green Light Coding 09 Февраль 2023, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 107 раз и оно понравилось 11 зрителям. Приятного просмотра!