5.8 How to Print Ascii values in Java

preview_player
Показать описание
ASCII (American Standard Code for Information Interchange) is the most common format for text files in computers and on the Internet. In an ASCII file, each alphabetic, numeric, or special character is represented with a 7-bit binary number (a string of seven 0s or 1s). 128 possible characters are defined.

Check out our courses:

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO10 (10% Discount)

Coupon: TELUSKO20 (20% Discount)

Udemy Courses:

For More Queries WhatsApp or Call on : +919008963671

Рекомендации по теме
Комментарии
Автор

Best java lecture i have ever found, bole to jhakkas

akilmalik
Автор

You can directly write this code:-


for(char i=0; i<=127; i++) {

System.out.println((int)i+" = "+i);
}

Tathāstuk
Автор

Very useful tutorial. Thank you. only thing is the audio is loud n clear for some sessions n feeble for some.

angelsalomi
Автор

useful tutorial, thanks sir, keep it up 👍👍

SmartProgramming
Автор

when i ws write the programme in note pad ++ then i compile in cmd programme have erroe ..tell me sir what can i do

JayshreeShyamcommittee
Автор

Why don't you use printl here, it's possible or not? Sir

kalyanibandi
Автор

Thanks Sir for this tutorial. By using println I've written the below code pls have a look.

public class AsciiDemo {

public static void main(String[] args) {
for (int i=0; i<128;i++){

System.out.println(i+ ":" +(char)i);
}}

kumarsaurabh
Автор

How did the compiler get to know that there should be print ASCII value not the natural number.
Because natural no also have same logic and pattern as a know?

AbhijeetSingh-hhwy
Автор

Hi Sir
Why is the code not executing when I write println or print instead of printf?

biswajitsamantaray
Автор

sir, its showing values from 81 only, although i have written according to your code

ikramasharfi
Автор

Can you make tutorials based on icse syllabus

sameer
Автор

System.out.printf("%d : %c \n", i, i); //Error(Its not applicable for the argument String, int, int). I'm using java 8. Can anyone answer, why this line is not executed.

sureshdvijay
Автор

sir, how to print the unicode values??

rithvikkrishna
Автор

sir can u make the tutorials on .net plz sir

anirbanbera
Автор

How to print the ASCII value for a single Alphabet?

rareangel
Автор

There are 256 characters in ASCII format

jonsnow
Автор

Sir ye println wale function se ho skta h kya

HariomKumar-mfdq
Автор

we can use println
it is not getting it sir..

sanjaykallakuri
Автор

sir printf is not working in my system. can you help?? please

onlinejobnepal
Автор

Java me ascie value nhi unicode hota h
Jo 65536 tk h

ShivamKumar-nkfw
welcome to shbcf.ru