带有蓝色J的非法字符 [英] Illegal character with Blue J

查看:87
本文介绍了带有蓝色J的非法字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

程序

public class Project_X
{
   public static void main(String[] args){

      byte x;
      int a=270;
      double b =128.128;

      System.out.println("int converted to byte");
      x=(byte) a;

      System.out.println("a and x "+ a +" "+x);
      System.out.println("double converted to int");

      a=(int) b;

      System.out.println("b and a "+ b +" "+a);
      System.out.println("n double converted to byte");

      x=(byte) b;

      System.out.println("b and x "+b +" "+x);
   }
}

错误得到

非法字符:\ 160

illegal character:\160

推荐答案

您可以使用一种工具(可能是Web浏览器)将粘贴的程序代码复制粘贴到其中,该工具在复制的文本中包含"funky"符号.例如.不间断的空间.

You copy-pasted the program code using a tool (probably a web browser) that includes "funky" symbols in copied text. E.g. the non-breaking space.

暴露这些字符的一种方法如下:

One way to expose these characters is the following:

  1. 转到 http://www.asciitohex.com/
  2. 将您的代码复制粘贴到输入框中
  3. 点击转化
  4. 从右下角的"HTML实体"输出中复制粘贴文本
  5. 从代码中删除所有& -s和其他奇怪的东西
  1. Go to http://www.asciitohex.com/
  2. Copy-paste your code into the input box
  3. Click on convert
  4. Copy paste text from "Html Entities" output on lower right corner
  5. Remove all  -s and other strange things from code

这篇关于带有蓝色J的非法字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆