Welcome to collectivesolver - Programming & Software Q&A with code examples. A website with trusted programming answers. All programs are tested and work.

Contact: aviboots(AT)netvision.net.il

Buy a domain name - Register cheap domain names from $0.99 - Namecheap

Scalable Hosting That Grows With You

Secure & Reliable Web Hosting, Free Domain, Free SSL, 1-Click WordPress Install, Expert 24/7 Support

Semrush - keyword research tool

Boost your online presence with premium web hosting and servers

Disclosure: My content contains affiliate links.

39,926 questions

51,859 answers

573 users

How to convert a range of ASCII codes to characters in Java

1 Answer

0 votes
public class MyClass {
    public static void main(String args[]) {
        for (int i = 97; i < 123; i++) {
            char character = (char)i;
            System.out.println(i + ": " + character);
        }
    }
}
 
 
 
 
/*
run:
 
97: a
98: b
99: c
100: d
101: e
102: f
103: g
104: h
105: i
106: j
107: k
108: l
109: m
110: n
111: o
112: p
113: q
114: r
115: s
116: t
117: u
118: v
119: w
120: x
121: y
122: z

*/

 



answered Nov 6, 2023 by avibootz

Related questions

1 answer 155 views
1 answer 172 views
1 answer 244 views
1 answer 210 views
1 answer 85 views
...