Excellent! I have subscribed. I am learning Java and Visual Studio Code. Thank you. I am watching your other Java videos later today. You deserve many more subscribers.
Thank you so much this helped me a lott!! I was totally blank i wasn't able to understand anything was getting tons of errors on the code finally after doing what you told its all clean. You're a lifesaver!!
I have installed Java, Maven & Cucumber extensions for VSCode IDE. But in my VSCode IDE, there is no 'Create Java Project' button. Then how can I create a Java Maven project in VSCode.?
Hello, I want to ask something. Every time I open the vs code, a message saying "Java projects are opening, check the details" appears. It wasn't there before, is it normal? The laptop gets very hot while this is happening, that's why I asked.
thank you for not adding unnecessary fluff to the video and for getting to the point clear and quick 👍👍
This is called a fucking lecture, i freaking love, what i love more is his accent, its just cute and nice
i am dropping you a subscribe just becuase of this video
Excellent! I have subscribed. I am learning Java and Visual Studio Code. Thank you. I am watching your other Java videos later today. You deserve many more subscribers.
You're welcome, and thank you for your subscription
Excellent video mate, easy to follow and simple. Perfect!!
very soothing and simple. Great style of delivery. keeping the same pace while talking. Great! ty.
thanks for the comment
Simple, straight to the point, and works. Thank you!
Watched many videos but yours is very easy to understand..thanks man
very basic to know but that is the reason of sharing the fundamentals, great job!
This was a huge help. Super straight forward. Thanks!
Excellent introductory video. Crystal clear. Thank you.
Thank you so much this helped me a lott!! I was totally blank i wasn't able to understand anything was getting tons of errors on the code finally after doing what you told its all clean. You're a lifesaver!!
Thank you! It’s very helpful
as i m new to coding this really helped
A nice small tutorial. Excellent delivery of the information.
Thank you so much for this video, very important information, hi from Kazakhstan:)
you are awesome .. love the way u teach
This really simple and to the point thanks man
Simple and Understandable. 👍👍
Good to have this kind of helpful lecture
wonderfull man my talented man thank you
Thanks Bro,u help me very much,greetings from Brazil
very helpful, truly grateful for this video, it is godsend
thankou sir for very simple understanding each and every point.
I love your voice, sound like mix beetwen russian, morocan and fresh
Very useful and clear tutorial. Thank you!
How did you get it to go to the terminal
Mine always run on the output
Thank you so much for making the tutorial
I have installed Java, Maven & Cucumber extensions for VSCode IDE.
But in my VSCode IDE, there is no 'Create Java Project' button.
Then how can I create a Java Maven project in VSCode.?
same here
@@tamzidalmasum4831 Click the Explorer icon (Ctrl + Shift + E).
Then refresh the VSCode IDE. Then 'JAVA PROJECTS' menu will appear. 📝
click ctrl+shift+p thin in above option will come to create java project .. or after ctrl+shift+p type java then option will come to make it
how to create class under a package
It works ..Thank you sir..
nice one bro!
what the name extension do u use?
Thanks man!
10/10, thx for the video
I did as you said and when I open the project in Intellij Idea, it says sdk is not installed.
What is Problem ? (Project running in VSCode)
Thank you for this video ❤
Hello, I want to ask something. Every time I open the vs code, a message saying "Java projects are opening, check the details" appears. It wasn't there before, is it normal? The laptop gets very hot while this is happening, that's why I asked.
İ mean is that mean vscode trying to open all java projects background?
Why in my Frame the logo is not "Java" but logo of "Linux" penguin?
Thank you for this video!
Vs code lo program Ela run cheyalo cheppandi sir please
How to delete the "FIRSTPROJECT" From our computer
how to insall java ?
my mind is blown
Thank you ❤
i need more and more projects like this and also advance projects
يسعد ام الهنود ياشيخ الله يحفظكم
Thank you👍
THANK YOOOU!!!
Error: Could not find or load main class Mainclass
Caused by: java.lang.ClassNotFoundException: Mainclass
Thank you
Amazing thanks
Thank you man
Thank you
Noice
thanks!
Hello friend can you help me please
Tq
Clickbait sala
👎👎👎👎
Thanks a lot sir ,🥹🥹 .
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class TicTacToc {
int boardWidth = 600;
int boardHeight = 650;//50px for the text panel on top
JFrame frame =new JFrame( "Tic-Tac-Toc");
JLabel textLabel = new JLabel();
JPanel textPanel = new JPanel();
JPanel boardPanel = new JPanel();
JButton[][] board = new JButton[3][3];
String playerX = "X";
String playerO = "O";
String currentPlayer = playerX;
boolean gameOver = false;
TicTacToc() {
frame.setVisible(true);
frame.setSize(boardWidth, boardHeight);
frame.setLocationRelativeTo(null);
frame.setResizable(false);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLayout(new BorderLayout());
textLabel.setBackground(Color.darkGray);
textLabel.setForeground(Color.white);
textLabel.setFont(new Font("Arial", Font.BOLD,50));
textLabel.setHorizontalAlignment(JLabel.CENTER);
textLabel.setText("Tic-Tac-Toc");
textLabel.setOpaque(true);
textPanel.setLayout(new BorderLayout());
textPanel.add(textLabel);
frame.add(textPanel, BorderLayout.NORTH);
boardPanel.setLayout(new GridLayout(3,3));
boardPanel.setBackground(Color.darkGray);
frame.add(boardPanel);
for (int r = 0; r < 3; r++ ) {
for (int c = 0; c< 3; c++) {
JButton tile = new JButton();
board[r][c] = tile;
boardPanel.add(tile);
tile.setBackground(Color.darkGray);
tile.setForeground(Color.white);
tile.setFont(new Font("Arial", Font.BOLD, 120));
tile.setFocusable(false);
// tile.setText(currentPlayer);
tile.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (gameOver) return;
JButton tile = (JButton) e.getSource();
if (tile.getText() == "") {
tile.setText(currentPlayer);
checkWinner();
if (!gameOver){
currentPlayer = currentPlayer == playerX ? playerO : playerX;
textLabel.setText(currentPlayer + "'s turn.");
}
}
}
});
}
}
}
void checkWinner() {
//horizontal
for (int r = 0; r < 3; r++) {
if (board[r][0].getText()== "") continue;
if (board[r][0].getText() == board[r][1].getText() &&
board[r][1].getText() == board[r][2].getText ()) {
for (int i =0; i < 3; i++) {
setWinner(board[r][i]);
}
gameOver = true;
return;
}
}
//vertical
for (int c = 0; c
seems very tedious to run simple codes