Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

print character in string java

String name = "John";
System.out.println(name.charAt(2));
// prints character 'h' to terminal
Comment

print a letter in java

    System.out.println(name.substring(1, Math.min(name.length(), 4)));
Comment

PREVIOUS NEXT
Code Example
Java :: javafx access fxml elements 
Java :: java deserialize json object 
Java :: nested for loop java 
Java :: add integers java 
Java :: java file path linux 
Java :: directory size java 
Java :: extract substring in string java 
Java :: start an activity in adapter 
Java :: is string a primitive data type/use of getclass() 
Java :: java read all text from file 
Java :: devotional meaning 
Java :: rest api client url not connecting to the database in spring boot 
Java :: java non-breajubg soace remove 
Java :: interact with databse java 
Sql :: stop mysql service ubuntu 
Sql :: postgres get running query 
Sql :: GROUP BY clause; this is incompatible with sql_mode=only_full_group_by 
Sql :: . ERROR! The server quit without updating PID file (/usr/local/var/mysql/MacBook-Pro-de-Quentin.local.pid). 
Sql :: copy table oracle 
Sql :: mysql stop password policy 
Sql :: this month mysql where 
Sql :: mysql convert timestamp to date 
Sql :: sql server: query to find out all the places where the table is used 
Sql :: his is incompatible with sql_mode=only_full_group_by 
Sql :: drop view in mysql 
Sql :: open postgress in terminal mac 
Sql :: sql alter table add column if exists 
Sql :: drop a row in mysql 
Sql :: mysql dump database command line linux 
Sql :: oracle to date 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =