How insert java list value in cassandra using java code?
<p>my cassandra DB structure:</p>

<pre><code>CREATE TABLE devjavasource.userorders (
user_id text PRIMARY KEY,
name text,
rlist list&lt;text&gt;
) WITH bloom_filter_fp_chance = 0.01
AND caching = {'keys': 'ALL', 'rows_per_partition': 'NONE'}
AND comment = ''
AND compaction = {'class': 'org.apache.cassandra.db.compaction.SizeTieredCompactionStrategy', 'max_threshold': '32', 'min_threshold': '4'}
AND compression = {'chunk_length_in_kb': '64', 'class': 'org.apache.cassandra.io.compress.LZ4Compressor'}
AND crc_check_chance = 1.0
AND dclocal_read_repair_chance = 0.1
AND default_time_to_live = 0
AND gc_grace_seconds = 864000
AND max_index_interval = 2048
AND memtable_flush_period_in_ms = 0
AND min_index_interval = 128
AND read_repair_chance = 0.0
AND speculative_retry = '99PERCENTILE';
</code></pre>

<p>my code:</p>

<pre><code>import com.datastax.driver.core.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class cassandraList
{

    public static void main(String[] args) {
        Cluster cluster = null;
        Session session = null;
        cluster = cluster.builder().addContactPoint("192.168.1.23").build();
        List&lt;String&gt; list= new ArrayList&lt;String&gt;();
        list.add("fake1@fake1.com");
        list.add("fake2@fake2.com");

        session = cluster.connect("devjavasource");

        System.out.println("test :" +list);

        Statement st = new SimpleStatement("INSERT INTO USERS (user_id, name, Rlist) VALUES ('11101', 'john', "+list+");");

        System.out.println("query :" +"INSERT INTO USERS (user_id, name, Rlist) VALUES ('11101', 'john', "+routing_points+");");
        ResultSet rs = session.execute(st);
    }
</code></pre>

<p>I got a error, so get query from print statement like this:</p>

<pre><code>  INSERT INTO USERS (user_id, name, Rlist) VALUES ('11101', 'john', [AUE, SAN, UK, LON]);
</code></pre>

<p>Then I run this query to cql manually, I got this error:</p>

<blockquote>
  <p>SyntaxException: &lt;ErrorMessage code=2000 [Syntax error in CQL query] message="line 1:70 no viable alternative at input ',' (...VALUES ('11101', 'john', [[AUE],...)"></p>
</blockquote>