How To Make Beeb Sound On Each Word In Java

How To Make Beeb Sound On Each Word In Java
hello guys , so you all know what is a beeb sound so on in vb.net or c-sharp it's veru easy to make beeb sound.

if you want to make beeb sound in vb.net here is the code
 Microsoft.VisualBasic.Interaction.Beep()

if you want to make beeb sound in c# here is the code

using Microsoft.VisualBasic;
using System.Media;

SystemSounds.Beep.Play();

ok now let's turn to java side

here is the codes that i wrote to do this , i am using arrays and a for loop and a thread.

actually i had to write this for a homework.

How To Print A Triangle In Java Using For Loop


hello guys , i remember what kind of homeworks in java students get at the start so i started to post solutions in this even i had to do this when i was doing java (a diploma) our sir asked us to make a program that prints out a triangle using For Loops so i created my own answer but my sir showed us a different one it doesn't even looks like a triangle but it has the triangle shape but mine is exactly a triangle .

this is my answer , NOTE : the easiest and the best way to print a real triangle



How To Make A GUI(Graphical User Interface) In Java

first java application

heyy guys !! i am back with java .. , so today i am gonna teach you how to make a your very first java GUI program after that i will write more tutorial on adding controls to the interface and giving click events .. , first of all open your favorite text editor and after that these are the codes i have written so go ahead and put them in

How To Create And Write A Text File In Java

We will see how to create and write a text file in java so basically you get the idea after reading the title whatever when you run this program it creates a txt file and write some text inside so lets start making it , i am doing this in text editor so it's good id you also use a text editor ok now create a class and add the namespace io import java.io.*; and now write down the public static void main(String args[]) by the way don't forget to add the tags ({) now write down FileOutputStream Create; after that write this PrintStream Write; alright i will just put here the whole codes to make it easier for you

import java.io.*;
public class Create_txt 
{ 

 public static void main(String args[])
   {
    FileOutputStream Create;
    PrintStream Write;
    try
   {
    Create = new FileOutputStream("Text.txt");

    Write = new PrintStream( Create );

    Write.println ("Ultimate programming tutorials");

    Write.close();
    } 
    catch (Exception e)
    {
   System.err.println ("Cannot write txt file");
   }
  }
}

now when you run a new txt file will be created named "Text.txt" and Ultimate programming tutorials will be there inside the txt file if something stopped the process you will see "Cannot write txt file" in the console , i hope this is useful.

How To Make A Password Generator In Java

generate


hello today i am going to teach you to create a password generator in java first of all make sure you read this - http://ultimateprogrammingtutorials.blogspot.com/2013/02/starting-with-java-programming.html ok now what this program will do is we have string alphabets now when we run the program it will generate a password by the way this is not a GUI program so now here is the code

Starting With Java Programming

java programming

In this post I will tell you what I know about java and how to make a hello world program in java ok, now java is a great programming language, it was introduced in 1995. From my experience java is nothing without classes because everything works with classes in java programming, java is a language that can be used in web and desktop, the syntax of java is exactly the same as c# and also the codes are similar to c# too if you go through the java programming history you will see java programming language is a tradition of C & C++, the newest version is JDK 7.
Java originally doesn't have an IDE(Integrated Development Environment) it just have compiler, below is a hello world program in java
public class HelloWorldApp {

    public static void main(String[] args) {
            System.out.println("Hello World - ultimate programming tutorials");
    }

}
The code is for the hello world program now you can see public class HelloWorldApp its the class name, the program should start off with public static void main(string[] args).

I hope you learned something, share with your friends and please let me know if theres any questions.

Java Tutorials